es.udc.gii.common.eaf.log.parallel
Class ParallelFEsLogTool

java.lang.Object
  extended by es.udc.gii.common.eaf.log.LogTool
      extended by es.udc.gii.common.eaf.log.parallel.ParallelLogTool
          extended by es.udc.gii.common.eaf.log.parallel.ParallelFEsLogTool
All Implemented Interfaces:
Configurable, java.util.Observer

public class ParallelFEsLogTool
extends ParallelLogTool

A parallel log tool for logging the best fitness of a population. The best fitness is logged when user defined objective function evaluations have been performed.

Configuration:

 <Fes_Prints>...</Fes_Prints>
 <Fes_Prints>...</Fes_Prints>
 ...
 
Each of the Fes_Prints (one or more) parameters states after how many objective function evaluations the best fitness of the population is logged. The log is written after the replace state and after the final state.

The output reads as follows: The best fitness per line per Fes_Prints. In an island model this log tool logs for each island in an independent file. For a distributed evaluation model, only one file is needed.

Since:
1.0
Author:
Grupo Integrado de IngenierĂ­a (www.gii.udc.es)
See Also:
ParallelBestFEsLogTool

Field Summary
private  int fes_index
           
private  java.util.List fes_prints
           
private  int num_prints
           
 
Fields inherited from class es.udc.gii.common.eaf.log.parallel.ParallelLogTool
t0
 
Fields inherited from class es.udc.gii.common.eaf.log.LogTool
fileExtension, name, oldFolder, oldName
 
Constructor Summary
ParallelFEsLogTool()
           
 
Method Summary
 void configure(org.apache.commons.configuration.Configuration conf)
          Configures the specific element that implements this method.
 java.lang.String getLogID()
           
 void update(java.util.Observable o, java.lang.Object arg)
           
 
Methods inherited from class es.udc.gii.common.eaf.log.parallel.ParallelLogTool
getNodeID
 
Methods inherited from class es.udc.gii.common.eaf.log.LogTool
finalize, getLog, setFile
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

num_prints

private int num_prints

fes_prints

private java.util.List fes_prints

fes_index

private int fes_index
Constructor Detail

ParallelFEsLogTool

public ParallelFEsLogTool()
Method Detail

configure

public void configure(org.apache.commons.configuration.Configuration conf)
Description copied from interface: Configurable
Configures the specific element that implements this method.

Specified by:
configure in interface Configurable
Overrides:
configure in class LogTool
Parameters:
conf - a Configuration object.
See Also:
Configuration

getLogID

public java.lang.String getLogID()
Overrides:
getLogID in class LogTool

update

public void update(java.util.Observable o,
                   java.lang.Object arg)
Specified by:
update in interface java.util.Observer
Overrides:
update in class LogTool