games.simulation.flayer.concretClasses.objectsFamily.airPlane.fuelTank
Class ConcretFuelTankOne

java.lang.Object
  extended by games.simulation.flayer.concretClasses.objectsFamily.airPlane.fuelTank.ConcretFuelTankOne
All Implemented Interfaces:
FuelTank, ObjectsWorld, ObjectsWorldSetable

public class ConcretFuelTankOne
extends java.lang.Object
implements FuelTank

Author:
diego

Constructor Summary
ConcretFuelTankOne(java.lang.Double height, java.lang.Double width, java.lang.Double weight, java.lang.Double MAX_CAPACITY)
           
 
Method Summary
 java.lang.Double area()
           
 void descressFuel(java.lang.Double fuel)
          Decress some fuel value.
 void fillFluelTank(java.lang.Double fuel)
          Incress fuel on FuelTank.
 java.lang.Double fuelToEngine(java.lang.Double potency)
          Decess some fuel value based on Engine Potency.
 java.lang.Double getCurrentCapacity()
           
 java.lang.Double getCurrentFuelStats()
           
 java.lang.String getLowMedHigFuelStats()
           
 java.lang.Double getMaxCapacity()
           
 java.lang.Double getObjectHeight()
           
 java.lang.Double getObjectWeight()
           
 java.lang.Double getObjectWidth()
           
 void setCurrentCapacity(java.lang.Double currentCapacity)
           
 void setMaxCapacity(java.lang.Double MAX_CAPACITY)
          Set the MAX CAPACITY of FuelTank.
 void setObjectHeight(java.lang.Double height)
          Set the Object height.
 void setObjectWeight(java.lang.Double weight)
          Set the Object weight.
 void setObjectWidth(java.lang.Double width)
          Set the Object width.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConcretFuelTankOne

public ConcretFuelTankOne(java.lang.Double height,
                          java.lang.Double width,
                          java.lang.Double weight,
                          java.lang.Double MAX_CAPACITY)
Method Detail

descressFuel

public void descressFuel(java.lang.Double fuel)
Description copied from interface: FuelTank
Decress some fuel value.

Specified by:
descressFuel in interface FuelTank

fillFluelTank

public void fillFluelTank(java.lang.Double fuel)
Description copied from interface: FuelTank
Incress fuel on FuelTank.

Specified by:
fillFluelTank in interface FuelTank

fuelToEngine

public java.lang.Double fuelToEngine(java.lang.Double potency)
Description copied from interface: FuelTank
Decess some fuel value based on Engine Potency.

Specified by:
fuelToEngine in interface FuelTank
Returns:

getCurrentFuelStats

public java.lang.Double getCurrentFuelStats()
Specified by:
getCurrentFuelStats in interface FuelTank
Returns:
the curren value of fuel.

getLowMedHigFuelStats

public java.lang.String getLowMedHigFuelStats()
Specified by:
getLowMedHigFuelStats in interface FuelTank
Returns:
the String that Inform if the fuel stats is LOW, MEDIUM, FULL.

getMaxCapacity

public java.lang.Double getMaxCapacity()
Specified by:
getMaxCapacity in interface FuelTank
Returns:
the FuelTank MAX CAPACITY

setMaxCapacity

public void setMaxCapacity(java.lang.Double MAX_CAPACITY)
Description copied from interface: FuelTank
Set the MAX CAPACITY of FuelTank.

Specified by:
setMaxCapacity in interface FuelTank

area

public java.lang.Double area()
Specified by:
area in interface ObjectsWorld
Returns:
the Object area.

getObjectHeight

public java.lang.Double getObjectHeight()
Specified by:
getObjectHeight in interface ObjectsWorld
Returns:
the Obejct height.

getObjectWeight

public java.lang.Double getObjectWeight()
Specified by:
getObjectWeight in interface ObjectsWorld
Returns:
the Object weight.

getObjectWidth

public java.lang.Double getObjectWidth()
Specified by:
getObjectWidth in interface ObjectsWorld
Returns:
the Object width.

getCurrentCapacity

public java.lang.Double getCurrentCapacity()
Specified by:
getCurrentCapacity in interface FuelTank
Returns:
the currentCapacity

setObjectHeight

public void setObjectHeight(java.lang.Double height)
Description copied from interface: ObjectsWorldSetable
Set the Object height.

Specified by:
setObjectHeight in interface ObjectsWorldSetable

setObjectWeight

public void setObjectWeight(java.lang.Double weight)
Description copied from interface: ObjectsWorldSetable
Set the Object weight.

Specified by:
setObjectWeight in interface ObjectsWorldSetable

setObjectWidth

public void setObjectWidth(java.lang.Double width)
Description copied from interface: ObjectsWorldSetable
Set the Object width.

Specified by:
setObjectWidth in interface ObjectsWorldSetable

setCurrentCapacity

public void setCurrentCapacity(java.lang.Double currentCapacity)
Specified by:
setCurrentCapacity in interface FuelTank
Parameters:
currentCapacity - the currentCapacity to set

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2007. All Rights Reserved.