es.udc.gii.common.eaf.plugin.stoptest
Class FesPlugin

java.lang.Object
  extended by es.udc.gii.common.eaf.plugin.stoptest.StopTestPlugin
      extended by es.udc.gii.common.eaf.plugin.stoptest.FesPlugin
All Implemented Interfaces:
Configurable, Plugin

public class FesPlugin
extends StopTestPlugin

This class implements a plugin with the responsability of return the number of current function evaluations (FEs) executed by the algorithm and the maximum number of FEs allowed to execute.

Author:
pilar

Field Summary
private  int max_fes
          Maximum number of function evaluations
 
Constructor Summary
FesPlugin()
           
 
Method Summary
 void configure(org.apache.commons.configuration.Configuration conf)
           
 int getCurrent(EvolutionaryAlgorithm algorithm)
          Return the current number of function evaluations excuted by the algorithm
 int getMax(EvolutionaryAlgorithm algorithm)
           
 
Methods inherited from class es.udc.gii.common.eaf.plugin.stoptest.StopTestPlugin
getStopTestList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

max_fes

private int max_fes
Maximum number of function evaluations

Constructor Detail

FesPlugin

public FesPlugin()
Method Detail

configure

public void configure(org.apache.commons.configuration.Configuration conf)

getCurrent

public int getCurrent(EvolutionaryAlgorithm algorithm)
Return the current number of function evaluations excuted by the algorithm

Specified by:
getCurrent in class StopTestPlugin
Parameters:
algorithm - the algorithm that is in execution.
Returns:
the current number of FEs executed by the algorithm.

getMax

public int getMax(EvolutionaryAlgorithm algorithm)
Specified by:
getMax in class StopTestPlugin