|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.optiloading.Tank
public class Tank
Tank class used to stow information about the tank and calculate its center of gravity.
Nested Class Summary | |
---|---|
(package private) class |
Tank.TankData
|
Constructor Summary | |
---|---|
Tank(java.lang.String id,
float max,
float l,
int bf,
int ef)
Constructor used to create a new tank. |
Method Summary | |
---|---|
void |
addData(float vol,
float flo,
float kge,
float fsmo)
Method for adding sounding data to the tank. |
int |
getBeginframe()
Method to get the begin frame of the tank |
float |
getCargo()
Method to get the weight of the cargo in the tank |
int |
getEndframe()
Method to get the end frame of the tank |
float |
getFSM()
Method to get the Longitudinal Free Surface Moment (FSM) of the tank |
float |
getKG()
Method to get the KG of the tank |
float |
getLCG()
Method to get the Longitudinal Center of Gravity (LCG) of the tank |
float |
getLength()
Method to get the length of the tank |
float |
getMaxvolume()
Method to get the maximum volume the tank |
float |
getSpecificGravity()
Method to get the specific gravity of the cargo in the tank |
java.lang.String |
getTankid()
Method to get the tank's identification |
float |
getVolume()
Method to get the volume of the cargo in the tank |
void |
setVolume(float vol,
float specg)
Method to set the volume of a tank and calculate the longitudinal center of gravity. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Tank(java.lang.String id, float max, float l, int bf, int ef)
id
- String to identify the tank.max
- Floating point value indicating the maximum value.Method Detail |
---|
public void addData(float vol, float flo, float kge, float fsmo)
vol
- Floating point value indicating a volume.flo
- Floating point value that indicated the longitudinal center of gravity corresponding with the indicated volume.public void setVolume(float vol, float specg)
vol
- Floating point value indicating the volume to be set.specg
- Floating point value indicating the specific gravity of the loaded volumepublic float getLCG()
public float getKG()
public float getFSM()
public float getCargo()
public float getVolume()
public java.lang.String getTankid()
public float getMaxvolume()
public float getLength()
public int getBeginframe()
public int getEndframe()
public float getSpecificGravity()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |