public class EngineFuel
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
Units in which the fuel is measured uid 328
|
protected int |
fuelQuantity
Fuel quantity, units specified by next field
|
protected SupplyFuelType |
fuelType
Type of fuel uid 413
|
protected byte |
padding
padding
|
Constructor and Description |
---|
EngineFuel()
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 |
int |
getFuelQuantity()
Getter for
fuelQuantity |
SupplyFuelType |
getFuelType()
Getter for
fuelType |
int |
getMarshalledSize()
Returns the size of this serialized object in bytes
|
byte |
getPadding()
Getter for
padding |
void |
marshal(java.nio.ByteBuffer buff)
Packs an object into the ByteBuffer.
|
void |
marshal(java.io.DataOutputStream dos)
Serializes an object to a DataOutputStream.
|
EngineFuel |
setFuelLocation(FuelLocation pFuelLocation)
Setter for
fuelLocation |
EngineFuel |
setFuelMeasurementUnits(FuelMeasurementUnits pFuelMeasurementUnits)
Setter for
fuelMeasurementUnits |
EngineFuel |
setFuelQuantity(int pFuelQuantity)
Setter for
fuelQuantity |
EngineFuel |
setFuelType(SupplyFuelType pFuelType)
Setter for
fuelType |
EngineFuel |
setPadding(byte pPadding)
Setter for
padding |
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 fuelQuantity
protected FuelMeasurementUnits fuelMeasurementUnits
protected SupplyFuelType fuelType
protected FuelLocation fuelLocation
protected byte padding
public int getMarshalledSize()
public EngineFuel setFuelQuantity(int pFuelQuantity)
fuelQuantity
public int getFuelQuantity()
fuelQuantity
public EngineFuel setFuelMeasurementUnits(FuelMeasurementUnits pFuelMeasurementUnits)
fuelMeasurementUnits
public FuelMeasurementUnits getFuelMeasurementUnits()
fuelMeasurementUnits
public EngineFuel setFuelType(SupplyFuelType pFuelType)
fuelType
public SupplyFuelType getFuelType()
fuelType
public EngineFuel setFuelLocation(FuelLocation pFuelLocation)
fuelLocation
public FuelLocation getFuelLocation()
fuelLocation
public EngineFuel 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