es.udc.gii.common.eaf.log.nsga2
Class NSGA2LogTool

java.lang.Object
  extended by es.udc.gii.common.eaf.log.LogTool
      extended by es.udc.gii.common.eaf.log.nsga2.NSGA2LogTool
All Implemented Interfaces:
Configurable, java.util.Observer
Direct Known Subclasses:
NSGA2FinalParetoFrontLogTool

public abstract class NSGA2LogTool
extends LogTool

The base class for all NSGA2 log tools.

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

Field Summary
 
Fields inherited from class es.udc.gii.common.eaf.log.LogTool
fileExtension, name, oldFolder, oldName
 
Constructor Summary
NSGA2LogTool()
           
 
Method Summary
 java.util.List<NSGA2Individual> getFront(java.util.List<Individual> population, int front)
          Returns the front + 1-th front.
 
Methods inherited from class es.udc.gii.common.eaf.log.LogTool
configure, finalize, getLog, getLogID, getNodeID, setFile, update
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NSGA2LogTool

public NSGA2LogTool()
Method Detail

getFront

public java.util.List<NSGA2Individual> getFront(java.util.List<Individual> population,
                                                int front)
Returns the front + 1-th front. The 0-th is the Pareto front.

Parameters:
population - List of individuals.
front - The front number. The 0-th front is the Pareto front.
Returns:
A list of individuals.
Throws:
WrongIndividualException - If the passed list of individuals contains instances that are not instances of NSGA2Individual.