gap
Class LogFile
java.lang.Object
|
+--gap.LogBook
|
+--gap.LogFile
- public class LogFile
- extends LogBook
- Author:
- Pietro Berkes, Samuele Pedroni
|
Constructor Summary |
LogFile(java.lang.String name)
|
LogFile(java.lang.String name,
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 |
verbose
public boolean verbose
LogFile
public LogFile(java.lang.String name)
throws java.io.IOException
LogFile
public LogFile(java.lang.String name,
boolean verbose)
throws java.io.IOException
- Parameters:
verbose - If verbose, print each generation all the population to file.
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