public class Expendable
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected EntityType |
expendable
Type of expendable
|
protected MunitionExpendableStatus |
expendableStatus
uid 327
|
protected byte |
padding |
protected short |
quantity |
protected int |
station |
Constructor and Description |
---|
Expendable()
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 |
MunitionExpendableStatus |
getExpendableStatus()
Getter for
expendableStatus |
int |
getMarshalledSize()
Returns the size of this serialized object in bytes
|
byte |
getPadding()
Getter for
padding |
short |
getQuantity()
Getter for
quantity |
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.
|
Expendable |
setExpendable(EntityType pExpendable)
Setter for
expendable |
Expendable |
setExpendableStatus(MunitionExpendableStatus pExpendableStatus)
Setter for
expendableStatus |
Expendable |
setPadding(byte pPadding)
Setter for
padding |
Expendable |
setQuantity(short pQuantity)
Setter for
quantity |
Expendable |
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 quantity
protected MunitionExpendableStatus expendableStatus
protected byte padding
public int getMarshalledSize()
public Expendable setExpendable(EntityType pExpendable)
expendable
public EntityType getExpendable()
expendable
public Expendable setStation(int pStation)
station
public int getStation()
station
public Expendable setQuantity(short pQuantity)
quantity
public short getQuantity()
quantity
public Expendable setExpendableStatus(MunitionExpendableStatus pExpendableStatus)
expendableStatus
public MunitionExpendableStatus getExpendableStatus()
expendableStatus
public Expendable setPadding(byte pPadding)
padding
public byte getPadding()
padding
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