|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectMain.State
Main.AbstractRun
Main.Tutorials.Tutorial4
public class Tutorial4
Tutorial4 main class. This class is derived from the class State. State is conceptually the outer level of a program created using GEVA, it is a container class for the algorithm and it used to setup initialise and run the algorithm. AbstractRun provides parameter reading functionality. You should try to familiarise yourself with GEVA's parameterisation mechanism(Covered in a later tutorial) as it will make your life much easier :) When Implementing a algorithm with GEVA it makes sense to extend AbstractRun, and implement the method setup(String[] args).
Field Summary |
---|
Fields inherited from class Main.AbstractRun |
---|
collector, initialiser, properties, propertiesFilePath, stdErr, stdOut |
Fields inherited from class Main.State |
---|
algorithm, rng |
Constructor Summary | |
---|---|
Tutorial4()
Creates a new instance of Tutorial4 |
Method Summary | |
---|---|
void |
experiment(java.lang.String[] args)
|
static void |
main(java.lang.String[] args)
Run the state |
void |
setup()
|
void |
setup(java.lang.String[] args)
Setup the algorithm. |
Methods inherited from class Main.AbstractRun |
---|
commandLineArgs, foundOptimum, getBestIndiv, getCollector, getCrossoverOperation, getFitnessFunction, getGEGrammar, getInitialiser, getJoinOperator, getMutationOperation, getSelectionOperation, init, printStuff, readProperties, run, setOutput |
Methods inherited from class Main.State |
---|
getAlgorithm, load, save |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Tutorial4()
Method Detail |
---|
public void setup()
public void experiment(java.lang.String[] args)
experiment
in class State
public void setup(java.lang.String[] args)
setup
in class AbstractRun
args
- The command line argumentspublic static void main(java.lang.String[] args)
args
- The command line arguments
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |