|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.optiloading.Gui
public class Gui
Gui class creates the main GUI.
Nested Class Summary | |
---|---|
(package private) class |
Gui.AboutListener
|
(package private) class |
Gui.ComboBoxListener
|
(package private) class |
Gui.HelpListener
|
(package private) class |
Gui.QuitListener
|
(package private) class |
Gui.SettingsListener
|
(package private) class |
Gui.StartButtonListener
|
Field Summary | |
---|---|
MiscComp |
misccompartments
|
Method Summary | |
---|---|
void |
addLog(java.lang.String add)
Method to add text to the genetic log. |
void |
addLogSeparator()
Method to add a seperator to the log |
float |
getCargo()
Method to get the desired cargo or TMD to be achieved. |
float |
getDensity()
Method to get the density of the water. |
static Gui |
getInstance()
Returns the uniqueInstance of the Gui object. |
float |
getSpecificgravity()
Method to get the specific gravity of the cargo. |
float |
getTarget()
Method to get the desired trim. |
void |
repaintOptiloading(int gen,
float mean)
Method to repaint the main GUI, if best solution hasn't changed. |
void |
repaintOptiloading(int gen,
float mean,
Chromosome best)
Method to repaint the main GUI. |
void |
setConstants(float dis,
float dead)
Method to get update the displacement and deadweight label. |
void |
showFrame()
Method uses by the Applet version to show the main frame. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public MiscComp misccompartments
Method Detail |
---|
public static Gui getInstance()
public void showFrame()
public void addLog(java.lang.String add)
add
- String containing the text you want to add to the log.public void addLogSeparator()
public float getCargo()
public void setConstants(float dis, float dead)
dis
- Floating point value that holds the displacement.dead
- Floating point value that holds the deadweight.public float getSpecificgravity()
public float getDensity()
public float getTarget()
public void repaintOptiloading(int gen, float mean)
gen
- Integer value containing the current generation.mean
- Floating point value containing the mean fitness of the current population.public void repaintOptiloading(int gen, float mean, Chromosome best)
gen
- Integer value containing the current generation.best
- Floating point value containing the fitness of the best solution.mean
- Floating point value containing the mean fitness of the current population.best
- Chromosome object that is the best of its current population.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |