|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ec.util.Checkpoint
Checkpoints ec.EvolutionState objects out to checkpoint files, or restores the same from checkpoint files. Checkpoint take the following form:
checkpointPrefix.generation.gz
...where checkpointPrefix is the checkpoing prefix given in ec.EvolutionState, and generation is the current generation number also given in ec.EvolutionState. The ".gz" is added because the file is GZIPped to save space.
Constructor Summary | |
Checkpoint()
|
Method Summary | |
static EvolutionState |
restoreFromCheckpoint(java.lang.String checkpoint)
Returns an EvolutionState object read from a checkpoint file whose filename is checkpoint |
static void |
setCheckpoint(EvolutionState state)
Writes the evolution state out to a file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Checkpoint()
Method Detail |
public static void setCheckpoint(EvolutionState state)
public static EvolutionState restoreFromCheckpoint(java.lang.String checkpoint) throws java.io.IOException, java.lang.ClassNotFoundException, java.io.OptionalDataException
java.lang.ClassNotFoundException
- thrown when the checkpoint file contains a class reference which doesn't exist in your class hierarchy.
java.io.IOException
java.io.OptionalDataException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |