|
||||||||||
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.BurstDescriptor
Weapons burst (firing) description record.
Includes the EntityType record, which describes the country and assorted other geeky information.
PduElement
,
SerializationInterface
,
FirePdu
,
DetonationPdu
Field Summary | |
protected UnsignedShort |
fuse
Type of fuse. |
protected EntityType |
munition
Munition Record. |
protected UnsignedShort |
quantity
Quantity shall represent the number of rounds fired in the burst for the munition specified. |
protected UnsignedShort |
rate
The Rate shall represent the rounds per minute for the munition specified. |
static int |
sizeOf
Constant value--size of a Burst Desciptor Record; here : sizeOf = 16 bytes . |
protected UnsignedShort |
warhead
This filed shall describe the kind of explosive. |
Constructor Summary | |
BurstDescriptor()
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. |
UnsignedShort |
getFuse()
|
EntityType |
getMunition()
|
UnsignedShort |
getQuantity()
|
UnsignedShort |
getRate()
|
UnsignedShort |
getWarhead()
|
int |
length()
Returns the length of the object when serialized in a stream. |
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 |
setFuse(int pFuse)
|
void |
setFuse(UnsignedShort pFuse)
|
void |
setMunition(EntityType pMunition)
|
void |
setQuantity(int pQuantity)
|
void |
setQuantity(UnsignedShort pQuantity)
|
void |
setRate(int pRate)
|
void |
setRate(UnsignedShort pRate)
|
void |
setWarhead(int pWarhead)
|
void |
setWarhead(UnsignedShort pWarhead)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected EntityType munition
protected UnsignedShort warhead
protected UnsignedShort fuse
protected UnsignedShort quantity
protected UnsignedShort rate
public static final int sizeOf
sizeOf = 16 bytes
.
Constructor Detail |
public BurstDescriptor()
Method Detail |
public java.lang.Object clone()
PduElement
clone
in class PduElement
Object
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 PduElement
outputStream
- the stream to which this object is serializedpublic 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 PduElement
inputStream
- the stream from which this object is initializedpublic int length()
PduElement
length
in class PduElement
public void printValues(int indentLevel, java.io.PrintStream printStream)
PduElement
printValues
in class PduElement
indentLevel
- number of spaces to indent for visibilitypublic EntityType getMunition()
public void setMunition(EntityType pMunition)
public UnsignedShort getWarhead()
public void setWarhead(UnsignedShort pWarhead)
public void setWarhead(int pWarhead)
public UnsignedShort getFuse()
public void setFuse(UnsignedShort pFuse)
public void setFuse(int pFuse)
public UnsignedShort getQuantity()
public void setQuantity(UnsignedShort pQuantity)
public void setQuantity(int pQuantity)
public UnsignedShort getRate()
public void setRate(UnsignedShort pRate)
public void setRate(int pRate)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |