fr.cnes.genopus.nonWidget.maneuvers
Class CustomFuelTank

java.lang.Object
  extended by fr.cnes.genopus.nonWidget.maneuvers.CustomFuelTank
All Implemented Interfaces:
Serializable, Cloneable

public class CustomFuelTank
extends Object
implements Cloneable, Serializable

Class containing the fuel tank data.

Author:
sumelzi, bacr
See Also:
Serialized Form

Constructor Summary
CustomFuelTank()
          Creates a new instance.
CustomFuelTank(String nameTank, double propellantMass)
          Creates a new instance.
 
Method Summary
 CustomFuelTank clone()
          
 void copyFuelTankValues(CustomFuelTank fuelTank)
          Copies the values from the fuelTank in the parameter to this object.
 boolean equals(Object obj)
          
 double getPropellantMass()
          Get the propellant mass.
 String getTankName()
          Get the fuel tank name.
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CustomFuelTank

public CustomFuelTank()
Creates a new instance.


CustomFuelTank

public CustomFuelTank(String nameTank,
                      double propellantMass)
Creates a new instance.

Parameters:
nameTank - fuel tank name
propellantMass - propellant mass (kg)
Method Detail

getTankName

public String getTankName()
Get the fuel tank name.

Returns:
the fuel tank name

getPropellantMass

public double getPropellantMass()
Get the propellant mass.

Returns:
the propellant mass

clone

public CustomFuelTank clone()
                     throws CloneNotSupportedException

Overrides:
clone in class Object
Throws:
CloneNotSupportedException

copyFuelTankValues

public void copyFuelTankValues(CustomFuelTank fuelTank)
Copies the values from the fuelTank in the parameter to this object.

Parameters:
fuelTank - the values from the fuelTank to copy.

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2017. All rights reserved.