public class MunitionDescriptor
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected MunitionDescriptorFuse |
fuse
type of fuse used enumeration uid 61
|
protected EntityType |
munitionType
What munition was used in the burst
|
protected short |
quantity
how many of the munition were fired
|
protected short |
rate
rate at which the munition was fired
|
protected MunitionDescriptorWarhead |
warhead
type of warhead enumeration uid 60
|
Constructor and Description |
---|
MunitionDescriptor()
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
boolean |
equalsImpl(java.lang.Object obj)
Compare all fields that contribute to the state, ignoring
transient and static fields, for
this and the supplied object |
MunitionDescriptorFuse |
getFuse()
Getter for
fuse |
int |
getMarshalledSize()
Returns the size of this serialized object in bytes
|
EntityType |
getMunitionType()
Getter for
munitionType |
short |
getQuantity()
Getter for
quantity |
short |
getRate()
Getter for
rate |
MunitionDescriptorWarhead |
getWarhead()
Getter for
warhead |
void |
marshal(java.nio.ByteBuffer buff)
Packs an object into the ByteBuffer.
|
void |
marshal(java.io.DataOutputStream dos)
Serializes an object to a DataOutputStream.
|
MunitionDescriptor |
setFuse(MunitionDescriptorFuse pFuse)
Setter for
fuse |
MunitionDescriptor |
setMunitionType(EntityType pMunitionType)
Setter for
munitionType |
MunitionDescriptor |
setQuantity(short pQuantity)
Setter for
quantity |
MunitionDescriptor |
setRate(short pRate)
Setter for
rate |
MunitionDescriptor |
setWarhead(MunitionDescriptorWarhead pWarhead)
Setter for
warhead |
int |
unmarshal(java.nio.ByteBuffer buff)
Unpacks a Pdu from the underlying data.
|
int |
unmarshal(java.io.DataInputStream dis)
Unserializes an object from a DataInputStream.
|
protected EntityType munitionType
protected MunitionDescriptorWarhead warhead
protected MunitionDescriptorFuse fuse
protected short quantity
protected short rate
public int getMarshalledSize()
public MunitionDescriptor setMunitionType(EntityType pMunitionType)
munitionType
public EntityType getMunitionType()
munitionType
public MunitionDescriptor setWarhead(MunitionDescriptorWarhead pWarhead)
warhead
public MunitionDescriptorWarhead getWarhead()
warhead
public MunitionDescriptor setFuse(MunitionDescriptorFuse pFuse)
fuse
public MunitionDescriptorFuse getFuse()
fuse
public MunitionDescriptor setQuantity(short pQuantity)
quantity
public short getQuantity()
quantity
public MunitionDescriptor setRate(short pRate)
rate
public short getRate()
rate
public void marshal(java.io.DataOutputStream dos)
dos
- The DataOutputStreamDataOutputStream
public int unmarshal(java.io.DataInputStream dis)
dis
- The DataInputStreamDataInputStream
public void marshal(java.nio.ByteBuffer buff) throws java.lang.Exception
buff
- The ByteBuffer at the position to begin writingjava.nio.BufferOverflowException
- if buff is too smalljava.nio.ReadOnlyBufferException
- if buff is read onlyjava.lang.Exception
- ByteBuffer-generated exceptionByteBuffer
public int unmarshal(java.nio.ByteBuffer buff) throws java.lang.Exception
buff
- The ByteBuffer at the position to begin readingjava.nio.BufferUnderflowException
- if buff is too smalljava.lang.Exception
- ByteBuffer-generated exceptionByteBuffer
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean equalsImpl(java.lang.Object obj)
this
and the supplied objectobj
- the object to compare to