public class StorageFuelReload
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected FuelLocation |
fuelLocation
Location of fuel as related to entity.
|
protected FuelMeasurementUnits |
fuelMeasurementUnits
the fuel measurement units.
|
protected SupplyFuelType |
fuelType
Fuel type uid 413
|
protected int |
maximumQuantity
the maximum quantity of this fuel type that this sta- tion/launcher is capable of holding when a station/launcher is specified.
|
protected int |
maximumQuantityReloadTime
the seconds normally required to reload the maximum possible quantity of this fuel type at this station/launcher.
|
protected byte |
padding
padding
|
protected int |
standardQuantity
the standard quantity of this fuel type normally loaded at this station/launcher if a station/launcher is specified.
|
protected int |
standardQuantityReloadTime
the seconds normally required to reload the standard quantity of this fuel type at this specific station/launcher.
|
Constructor and Description |
---|
StorageFuelReload()
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 |
FuelLocation |
getFuelLocation()
Getter for
fuelLocation |
FuelMeasurementUnits |
getFuelMeasurementUnits()
Getter for
fuelMeasurementUnits |
SupplyFuelType |
getFuelType()
Getter for
fuelType |
int |
getMarshalledSize()
Returns the size of this serialized object in bytes
|
int |
getMaximumQuantity()
Getter for
maximumQuantity |
int |
getMaximumQuantityReloadTime()
Getter for
maximumQuantityReloadTime |
byte |
getPadding()
Getter for
padding |
int |
getStandardQuantity()
Getter for
standardQuantity |
int |
getStandardQuantityReloadTime()
Getter for
standardQuantityReloadTime |
void |
marshal(java.nio.ByteBuffer buff)
Packs an object into the ByteBuffer.
|
void |
marshal(java.io.DataOutputStream dos)
Serializes an object to a DataOutputStream.
|
StorageFuelReload |
setFuelLocation(FuelLocation pFuelLocation)
Setter for
fuelLocation |
StorageFuelReload |
setFuelMeasurementUnits(FuelMeasurementUnits pFuelMeasurementUnits)
Setter for
fuelMeasurementUnits |
StorageFuelReload |
setFuelType(SupplyFuelType pFuelType)
Setter for
fuelType |
StorageFuelReload |
setMaximumQuantity(int pMaximumQuantity)
Setter for
maximumQuantity |
StorageFuelReload |
setMaximumQuantityReloadTime(int pMaximumQuantityReloadTime)
Setter for
maximumQuantityReloadTime |
StorageFuelReload |
setPadding(byte pPadding)
Setter for
padding |
StorageFuelReload |
setStandardQuantity(int pStandardQuantity)
Setter for
standardQuantity |
StorageFuelReload |
setStandardQuantityReloadTime(int pStandardQuantityReloadTime)
Setter for
standardQuantityReloadTime |
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 int standardQuantity
protected int maximumQuantity
protected int standardQuantityReloadTime
protected int maximumQuantityReloadTime
protected FuelMeasurementUnits fuelMeasurementUnits
protected SupplyFuelType fuelType
protected FuelLocation fuelLocation
protected byte padding
public int getMarshalledSize()
public StorageFuelReload setStandardQuantity(int pStandardQuantity)
standardQuantity
public int getStandardQuantity()
standardQuantity
public StorageFuelReload setMaximumQuantity(int pMaximumQuantity)
maximumQuantity
public int getMaximumQuantity()
maximumQuantity
public StorageFuelReload setStandardQuantityReloadTime(int pStandardQuantityReloadTime)
standardQuantityReloadTime
public int getStandardQuantityReloadTime()
standardQuantityReloadTime
public StorageFuelReload setMaximumQuantityReloadTime(int pMaximumQuantityReloadTime)
maximumQuantityReloadTime
public int getMaximumQuantityReloadTime()
maximumQuantityReloadTime
public StorageFuelReload setFuelMeasurementUnits(FuelMeasurementUnits pFuelMeasurementUnits)
fuelMeasurementUnits
public FuelMeasurementUnits getFuelMeasurementUnits()
fuelMeasurementUnits
public StorageFuelReload setFuelType(SupplyFuelType pFuelType)
fuelType
public SupplyFuelType getFuelType()
fuelType
public StorageFuelReload setFuelLocation(FuelLocation pFuelLocation)
fuelLocation
public FuelLocation getFuelLocation()
fuelLocation
public StorageFuelReload 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