Documentation of 'ec.util.Checkpoint' Java class
Checkpoint
ec.util

Class Checkpoint



  • public class Checkpoint
    extends java.lang.Object
    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.

    When writing a checkpoint file, if you have specified a checkpoint directory in ec.EvolutionState.checkpointDirectory, then this directory will be used to write the checkpoint files. Otherwise they will be written in your working directory (where you ran the Java process).

    • Constructor Summary

      Constructors 
      Constructor and Description
      Checkpoint() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      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

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Checkpoint

        public Checkpoint()
    • Method Detail

      • setCheckpoint

        public static void setCheckpoint(EvolutionState state)
        Writes the evolution state out to a file.
      • restoreFromCheckpoint

        public static EvolutionState restoreFromCheckpoint(java.lang.String checkpoint)
                                                    throws java.io.IOException,
                                                           java.lang.ClassNotFoundException,
                                                           java.io.OptionalDataException
        Returns an EvolutionState object read from a checkpoint file whose filename is checkpoint
        Throws:
        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

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.