faa.tg.aircraft
Class AircraftCapacity

java.lang.Object
  extended by faa.tg.aircraft.AircraftCapacity
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class AircraftCapacity
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable


 

Version:
$Id: AircraftCapacity.java,v 3.1 2006/03/14 15:47:37 samf Exp $
Author:
John Richards
See Also:
Serialized Form

Field Summary
static java.lang.String CVS_VERSION_ID
          The CVS Version ID
private  Capacity fuelCapacity
          the fuel capacity of the aircraft
private  Capacity payloadCapacity
          the payload capacity of the aircraft
(package private) static long serialVersionUID
           
 
Constructor Summary
AircraftCapacity(Capacity fuelCapacity, Capacity payloadCapacity)
          constructor for the aircraft
 
Method Summary
 java.lang.Object clone()
          return a true copy of the AircraftCapacity Object
 Capacity getFuelCapacity()
          returns the fuel capacity of the aircraft
 Capacity getPayloadCapacity()
          returns the payload capacity of the aircraft
 Capacity getTotalCapacity()
          Returns the total capacity of the aircraft which is the sum of the fuel capacity, and the payload capacity.
 Mass getTotalMassCapacity()
          returns the total mass of the aircraft
 void setFuelCapacity(Capacity newFuelCapacity)
          sets the current fuel capacity to the newFuelCapacity
 void setPayloadCapacity(Capacity newPayloadCapacity)
          sets the current payload capacity to the newPayloadCapacity
 java.lang.String toString()
          Returns a string representation of this object.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

CVS_VERSION_ID

public static final java.lang.String CVS_VERSION_ID
The CVS Version ID

See Also:
Constant Field Values

fuelCapacity

private Capacity fuelCapacity
the fuel capacity of the aircraft


payloadCapacity

private Capacity payloadCapacity
the payload capacity of the aircraft

Constructor Detail

AircraftCapacity

public AircraftCapacity(Capacity fuelCapacity,
                        Capacity payloadCapacity)
constructor for the aircraft

Parameters:
fuelCapacity - the fuel capacity of the aircraft
payloadCapacity - the payload capacity of the aircraft
Method Detail

getTotalCapacity

public Capacity getTotalCapacity()
Returns the total capacity of the aircraft which is the sum of the fuel capacity, and the payload capacity.

Returns:
Capacity the total capacity of the aircraft

getTotalMassCapacity

public Mass getTotalMassCapacity()
returns the total mass of the aircraft

Returns:
Mass that aircraft's mass

getFuelCapacity

public Capacity getFuelCapacity()
returns the fuel capacity of the aircraft

Returns:
Capacity of the fuel the aircraft can contain

getPayloadCapacity

public Capacity getPayloadCapacity()
returns the payload capacity of the aircraft

Returns:
Capacity of the payload the aircraft can contain

setFuelCapacity

public void setFuelCapacity(Capacity newFuelCapacity)
sets the current fuel capacity to the newFuelCapacity

Parameters:
newFuelCapacity - the new fuel capacity

setPayloadCapacity

public void setPayloadCapacity(Capacity newPayloadCapacity)
sets the current payload capacity to the newPayloadCapacity

Parameters:
newPayloadCapacity - the new payload capacity

clone

public java.lang.Object clone()
return a true copy of the AircraftCapacity Object

Overrides:
clone in class java.lang.Object
Returns:
Object the Java base Object which holds the true copy

toString

public java.lang.String toString()
Returns a string representation of this object. In general, the toString method returns a String that "textually represents" this object.

Overrides:
toString in class java.lang.Object
Returns:
String a String representation of this object