edu.nps.moves.dis7mobile
Class StorageFuelReload

java.lang.Object
  extended by edu.nps.moves.dis7mobile.StorageFuelReload
All Implemented Interfaces:
java.io.Serializable

public class StorageFuelReload
extends java.lang.Object
implements java.io.Serializable

For each type or location of Storage Fuel, this record shall specify the type, location, fuel measure- ment units, reload quantity and maximum quantity for storage fuel either for the whole entity or a specific storage fuel location (tank). Section 6.2.84. Copyright (c) 2008-2010, MOVES Institute, Naval Postgraduate School. All rights reserved. This work is licensed under the BSD open source license, available at https://www.movesinstitute.org/licenses/bsd.html

Author:
DMcG
See Also:
Serialized Form

Field Summary
protected  short fuelLocation
          Location of fuel as related to entity.
protected  short fuelMeasurementUnits
          the fuel measurement units.
protected  short fuelType
          Fuel type.
protected  long maximumQuantity
          the maximum quantity of this fuel type that this sta- tion/launcher is capable of holding when a station/launcher is specified.
protected  short maximumQuantityReloadTime
          the seconds normally required to reload the maximum possible quantity of this fuel type at this station/launcher.
protected  short padding
          padding
protected  long standardQuantity
          the standard quantity of this fuel type normally loaded at this station/launcher if a station/launcher is specified.
protected  short standardQuantityReloadTime
          the seconds normally required to reload the standard quantity of this fuel type at this specific station/launcher.
 
Constructor Summary
StorageFuelReload()
          Constructor
 
Method Summary
 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
 short getFuelLocation()
           
 short getFuelMeasurementUnits()
           
 short getFuelType()
           
 int getMarshalledSize()
           
 long getMaximumQuantity()
           
 short getMaximumQuantityReloadTime()
           
 short getPadding()
           
 long getStandardQuantity()
           
 short getStandardQuantityReloadTime()
           
 void marshal(java.nio.ByteBuffer buff)
          Packs a Pdu into the ByteBuffer.
 void marshal(java.io.DataOutputStream dos)
           
 void setFuelLocation(short pFuelLocation)
           
 void setFuelMeasurementUnits(short pFuelMeasurementUnits)
           
 void setFuelType(short pFuelType)
           
 void setMaximumQuantity(long pMaximumQuantity)
           
 void setMaximumQuantityReloadTime(short pMaximumQuantityReloadTime)
           
 void setPadding(short pPadding)
           
 void setStandardQuantity(long pStandardQuantity)
           
 void setStandardQuantityReloadTime(short pStandardQuantityReloadTime)
           
 void unmarshal(java.nio.ByteBuffer buff)
          Unpacks a Pdu from the underlying data.
 void unmarshal(java.io.DataInputStream dis)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

standardQuantity

protected long standardQuantity
the standard quantity of this fuel type normally loaded at this station/launcher if a station/launcher is specified. If the Station/Launcher field is set to zero, then this is the total quantity of this fuel type that would be present in a standard reload of all appli- cable stations/launchers associated with this entity.


maximumQuantity

protected long maximumQuantity
the maximum quantity of this fuel type that this sta- tion/launcher is capable of holding when a station/launcher is specified. This would be the value used when a maximum reload was desired to be set for this station/launcher. If the Station/launcher field is set to zero, then this is the maximum quantity of this fuel type that would be present on this entity at all stations/launchers that can accept this fuel type.


standardQuantityReloadTime

protected short standardQuantityReloadTime
the seconds normally required to reload the standard quantity of this fuel type at this specific station/launcher. When the Station/Launcher field is set to zero, this shall be the time it takes to perform a standard quantity reload of this fuel type at all applicable stations/launchers for this entity.


maximumQuantityReloadTime

protected short maximumQuantityReloadTime
the seconds normally required to reload the maximum possible quantity of this fuel type at this station/launcher. When the Station/Launcher field is set to zero, this shall be the time it takes to perform a maximum quantity load/reload of this fuel type at all applicable stations/launchers for this entity.


fuelMeasurementUnits

protected short fuelMeasurementUnits
the fuel measurement units. Enumeration


fuelType

protected short fuelType
Fuel type. Enumeration


fuelLocation

protected short fuelLocation
Location of fuel as related to entity. See section 14 of EBV document


padding

protected short padding
padding

Constructor Detail

StorageFuelReload

public StorageFuelReload()
Constructor

Method Detail

getMarshalledSize

public int getMarshalledSize()

setStandardQuantity

public void setStandardQuantity(long pStandardQuantity)

getStandardQuantity

public long getStandardQuantity()

setMaximumQuantity

public void setMaximumQuantity(long pMaximumQuantity)

getMaximumQuantity

public long getMaximumQuantity()

setStandardQuantityReloadTime

public void setStandardQuantityReloadTime(short pStandardQuantityReloadTime)

getStandardQuantityReloadTime

public short getStandardQuantityReloadTime()

setMaximumQuantityReloadTime

public void setMaximumQuantityReloadTime(short pMaximumQuantityReloadTime)

getMaximumQuantityReloadTime

public short getMaximumQuantityReloadTime()

setFuelMeasurementUnits

public void setFuelMeasurementUnits(short pFuelMeasurementUnits)

getFuelMeasurementUnits

public short getFuelMeasurementUnits()

setFuelType

public void setFuelType(short pFuelType)

getFuelType

public short getFuelType()

setFuelLocation

public void setFuelLocation(short pFuelLocation)

getFuelLocation

public short getFuelLocation()

setPadding

public void setPadding(short pPadding)

getPadding

public short getPadding()

marshal

public void marshal(java.io.DataOutputStream dos)

unmarshal

public void unmarshal(java.io.DataInputStream dis)

marshal

public void marshal(java.nio.ByteBuffer buff)
Packs a Pdu into the ByteBuffer.

Parameters:
buff - The ByteBuffer at the position to begin writing
Throws:
java.nio.BufferOverflowException - if buff is too small
java.nio.ReadOnlyBufferException - if buff is read only
Since:
??
See Also:
ByteBuffer

unmarshal

public void unmarshal(java.nio.ByteBuffer buff)
Unpacks a Pdu from the underlying data.

Parameters:
buff - The ByteBuffer at the position to begin reading
Throws:
java.nio.BufferUnderflowException - if buff is too small
Since:
??
See Also:
ByteBuffer

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

equalsImpl

public 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

Parameters:
obj - the object to compare to
Returns:
true if the objects are equal, false otherwise.