public class CustomFuelTank extends Object implements Cloneable, Serializable
| Constructor and Description |
|---|
CustomFuelTank()
Creates a new instance.
|
CustomFuelTank(String nameTank,
double propellantMass)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
public CustomFuelTank()
public CustomFuelTank(String nameTank, double propellantMass)
nameTank - fuel tank namepropellantMass - propellant mass (kg)public String getTankName()
public double getPropellantMass()
public CustomFuelTank clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic void copyFuelTankValues(CustomFuelTank fuelTank)
fuelTank - the values from the fuelTank to copy.Copyright © 2017. All rights reserved.