|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.optiloading.Cargo
public class Cargo
Cargo class used to stow information about the cargo
Constructor Summary | |
---|---|
Cargo(float w,
float s)
Constructor used to create this object. |
Method Summary | |
---|---|
float |
getSpecificgravity()
Returns the specific gravity of the cargo (density relative to fresh water). |
float |
getVolume()
Returns the volume of the cargo in m^3 . |
float |
getWeight()
Returns the weight of the cargo in tonnes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Cargo(float w, float s)
w
- A floating point value indicating the weight of the cargo in tonnes.s
- The specific gravity of the cargo.Method Detail |
---|
public float getWeight()
public float getVolume()
public float getSpecificgravity()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |