gap
Class LogScreen

java.lang.Object
  |
  +--gap.LogBook
        |
        +--gap.LogScreen

public class LogScreen
extends LogBook

Author:
Pietro Berkes, Samuele Pedroni

Field Summary
 boolean verbose
           
 
Constructor Summary
LogScreen()
           
LogScreen(boolean verbose)
           
 
Method Summary
 void log(java.lang.String msg)
          Called to log some messages.
 void logStats(GPProgram bestIndividual, double bestFitness, double averageFitness, double worstFitness, GPPopulation p)
          Called after the evaluation of the population.
 void stop()
          Called if requested to stop logging.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

verbose

public boolean verbose
Constructor Detail

LogScreen

public LogScreen()

LogScreen

public LogScreen(boolean verbose)
Parameters:
verbose - If verbose, print each generation all the population.
Method Detail

log

public void log(java.lang.String msg)
Description copied from class: LogBook
Called to log some messages.
Overrides:
log in class LogBook
Following copied from class: gap.LogBook
Parameters:
msg - A message, without the newline character.

logStats

public void logStats(GPProgram bestIndividual,
                     double bestFitness,
                     double averageFitness,
                     double worstFitness,
                     GPPopulation p)
Description copied from class: LogBook
Called after the evaluation of the population.
Overrides:
logStats in class LogBook

stop

public void stop()
Description copied from class: LogBook
Called if requested to stop logging.
Overrides:
stop in class LogBook