public class ExpendableReload
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected EntityType |
expendable
Type of expendable
|
protected short |
maximumQuantity |
protected int |
maximumQuantityReloadTime |
protected short |
standardQuantity |
protected int |
standardQuantityReloadTime |
protected int |
station |
Constructor and Description |
---|
ExpendableReload()
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 |
EntityType |
getExpendable()
Getter for
expendable |
int |
getMarshalledSize()
Returns the size of this serialized object in bytes
|
short |
getMaximumQuantity()
Getter for
maximumQuantity |
int |
getMaximumQuantityReloadTime()
Getter for
maximumQuantityReloadTime |
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.
|
ExpendableReload |
setExpendable(EntityType pExpendable)
Setter for
expendable |
ExpendableReload |
setMaximumQuantity(short pMaximumQuantity)
Setter for
maximumQuantity |
ExpendableReload |
setMaximumQuantityReloadTime(int pMaximumQuantityReloadTime)
Setter for
maximumQuantityReloadTime |
ExpendableReload |
setStandardQuantity(short pStandardQuantity)
Setter for
standardQuantity |
ExpendableReload |
setStandardQuantityReloadTime(int pStandardQuantityReloadTime)
Setter for
standardQuantityReloadTime |
ExpendableReload |
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 expendable
protected int station
protected short standardQuantity
protected short maximumQuantity
protected int standardQuantityReloadTime
protected int maximumQuantityReloadTime
public int getMarshalledSize()
public ExpendableReload setExpendable(EntityType pExpendable)
expendable
public EntityType getExpendable()
expendable
public ExpendableReload setStation(int pStation)
station
public int getStation()
station
public ExpendableReload setStandardQuantity(short pStandardQuantity)
standardQuantity
public short getStandardQuantity()
standardQuantity
public ExpendableReload setMaximumQuantity(short pMaximumQuantity)
maximumQuantity
public short getMaximumQuantity()
maximumQuantity
public ExpendableReload setStandardQuantityReloadTime(int pStandardQuantityReloadTime)
standardQuantityReloadTime
public int getStandardQuantityReloadTime()
standardQuantityReloadTime
public ExpendableReload 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