public class Expendable
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected EntityType |
expendable
Type of expendable
|
protected short |
expendableStatus |
protected short |
padding |
protected int |
quantity |
protected long |
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() |
short |
getExpendableStatus() |
int |
getMarshalledSize() |
short |
getPadding() |
int |
getQuantity() |
long |
getStation() |
void |
marshal(java.nio.ByteBuffer buff)
Packs a Pdu into the ByteBuffer.
|
void |
marshal(java.io.DataOutputStream dos) |
void |
setExpendable(EntityType pExpendable) |
void |
setExpendableStatus(short pExpendableStatus) |
void |
setPadding(short pPadding) |
void |
setQuantity(int pQuantity) |
void |
setStation(long pStation) |
void |
unmarshal(java.nio.ByteBuffer buff)
Unpacks a Pdu from the underlying data.
|
void |
unmarshal(java.io.DataInputStream dis) |
protected EntityType expendable
protected long station
protected int quantity
protected short expendableStatus
protected short padding
public int getMarshalledSize()
public void setExpendable(EntityType pExpendable)
public EntityType getExpendable()
public void setStation(long pStation)
public long getStation()
public void setQuantity(int pQuantity)
public int getQuantity()
public void setExpendableStatus(short pExpendableStatus)
public short getExpendableStatus()
public void setPadding(short pPadding)
public short getPadding()
public void marshal(java.io.DataOutputStream dos)
public void unmarshal(java.io.DataInputStream dis)
public void marshal(java.nio.ByteBuffer buff)
buff
- The ByteBuffer at the position to begin writingjava.nio.BufferOverflowException
- if buff is too smalljava.nio.ReadOnlyBufferException
- if buff is read onlyByteBuffer
public void unmarshal(java.nio.ByteBuffer buff)
buff
- The ByteBuffer at the position to begin readingjava.nio.BufferUnderflowException
- if buff is too smallByteBuffer
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