public class MunitionReload
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected short |
maximumQuantity
the maximum quantity of this munition type that this station/launcher is capable of holding when a station/launcher is specified
|
protected int |
maximumQuantityReloadTime
the number of seconds of sim time required to reload the max possible quantity
|
protected EntityType |
munitionType
This field shall identify the entity type of the munition.
|
protected short |
standardQuantity
the standard quantity of this munition type normally loaded at this station/launcher if a station/launcher is specified.
|
protected int |
standardQuantityReloadTime
numer of seconds of sim time required to reload the std qty
|
protected int |
station
the station or launcher to which the munition is assigned.
|
Constructor and Description |
---|
MunitionReload()
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 |
int |
getMarshalledSize()
Returns the size of this serialized object in bytes
|
short |
getMaximumQuantity()
Getter for
maximumQuantity |
int |
getMaximumQuantityReloadTime()
Getter for
maximumQuantityReloadTime |
EntityType |
getMunitionType()
Getter for
munitionType |
short |
getStandardQuantity()
Getter for
standardQuantity |
int |
getStandardQuantityReloadTime()
Getter for
standardQuantityReloadTime |
int |
getStation()
Getter for
station |
void |
marshal(java.nio.ByteBuffer buff)
Packs an object into the ByteBuffer.
|
void |
marshal(java.io.DataOutputStream dos)
Serializes an object to a DataOutputStream.
|
MunitionReload |
setMaximumQuantity(short pMaximumQuantity)
Setter for
maximumQuantity |
MunitionReload |
setMaximumQuantityReloadTime(int pMaximumQuantityReloadTime)
Setter for
maximumQuantityReloadTime |
MunitionReload |
setMunitionType(EntityType pMunitionType)
Setter for
munitionType |
MunitionReload |
setStandardQuantity(short pStandardQuantity)
Setter for
standardQuantity |
MunitionReload |
setStandardQuantityReloadTime(int pStandardQuantityReloadTime)
Setter for
standardQuantityReloadTime |
MunitionReload |
setStation(int pStation)
Setter for
station |
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 int station
protected short standardQuantity
protected short maximumQuantity
protected int standardQuantityReloadTime
protected int maximumQuantityReloadTime
public int getMarshalledSize()
public MunitionReload setMunitionType(EntityType pMunitionType)
munitionType
public EntityType getMunitionType()
munitionType
public MunitionReload setStation(int pStation)
station
public int getStation()
station
public MunitionReload setStandardQuantity(short pStandardQuantity)
standardQuantity
public short getStandardQuantity()
standardQuantity
public MunitionReload setMaximumQuantity(short pMaximumQuantity)
maximumQuantity
public short getMaximumQuantity()
maximumQuantity
public MunitionReload setStandardQuantityReloadTime(int pStandardQuantityReloadTime)
standardQuantityReloadTime
public int getStandardQuantityReloadTime()
standardQuantityReloadTime
public MunitionReload setMaximumQuantityReloadTime(int pMaximumQuantityReloadTime)
maximumQuantityReloadTime
public int getMaximumQuantityReloadTime()
maximumQuantityReloadTime
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