|
JavaGenes, NASA Ames. Written largely by Al Globus | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.javaGenes.core.AbstractCheckpointable
gov.nasa.javaGenes.core.Run
run JavaGenes under control of a Checkpointer object
Field Summary | |
protected Timer |
checkpointTimer
|
protected LogFile |
checkpointTimesFile
|
protected boolean |
foundPerfection
|
protected int |
generation
|
protected Timer |
generationTimer
|
protected Parameters |
parameters
|
protected Population |
population
|
protected Reporter |
reporter
|
Fields inherited from class gov.nasa.javaGenes.core.AbstractCheckpointable |
checkpointer |
Constructor Summary | |
Run()
|
Method Summary | |
void |
afterCheckpoint()
will be called just after a checkpoint. |
protected void |
afterNextGeneration()
|
protected void |
atEnd()
|
void |
beforeCheckpoint()
will be called just before a checkpoint. |
protected void |
beforeNextGeneration()
|
protected void |
checkpoint()
|
Parameters |
getParameters()
|
protected void |
report()
|
void |
restart()
start the run after having read any checkpoint file |
protected void |
run()
called by start and restart to run the genetic algorithm |
protected boolean |
shouldStop()
|
void |
start(java.lang.String[] arguments)
start a run. |
protected abstract void |
startSpecialized(java.lang.String[] arguments)
used to do the special processing necessary at startup by subclasses |
Methods inherited from class gov.nasa.javaGenes.core.AbstractCheckpointable |
setCheckpointer, stateSave |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Parameters parameters
protected Population population
protected boolean foundPerfection
protected Timer generationTimer
protected int generation
protected Reporter reporter
protected transient LogFile checkpointTimesFile
protected transient Timer checkpointTimer
Constructor Detail |
public Run()
Method Detail |
public Parameters getParameters()
public void start(java.lang.String[] arguments)
start
in interface gov.nasa.javaGenes.core.Checkpointable
start
in class AbstractCheckpointable
arguments
- usually the arguments to main()protected abstract void startSpecialized(java.lang.String[] arguments)
public void restart()
restart
in interface gov.nasa.javaGenes.core.Checkpointable
restart
in class AbstractCheckpointable
protected void run()
protected void beforeNextGeneration()
protected void afterNextGeneration()
protected boolean shouldStop()
protected void atEnd()
public void beforeCheckpoint()
gov.nasa.javaGenes.core.Checkpointable
beforeCheckpoint
in interface gov.nasa.javaGenes.core.Checkpointable
beforeCheckpoint
in class AbstractCheckpointable
public void afterCheckpoint()
gov.nasa.javaGenes.core.Checkpointable
afterCheckpoint
in interface gov.nasa.javaGenes.core.Checkpointable
afterCheckpoint
in class AbstractCheckpointable
protected void report()
protected void checkpoint()
|
JavaGenes, NASA Ames. Written largely by Al Globus | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |