package Sequenic.T2ext.CoverageEngine.ga; import org.uncommons.watchmaker.framework.FitnessEvaluator; import Sequenic.T2.Seq.Trace; import Sequenic.T2ext.CoverageEngine.BaseEngine; /** * This class is a skeleton for a fitness evaluator. Concrete evaluators * should extend this class and implement the getFitness function. * * @author Christiaan Hees */ public abstract class Evaluator implements FitnessEvaluator { protected BaseEngine engine; protected String containingMethod; public Evaluator(BaseEngine engine) { this.engine = engine; } public boolean isNatural() { return false; } /** * Get the name of the method that contains the found pattern. */ public String getContainingMethod() { return containingMethod; } }