lio.search.local.greedy
Class GreedyStatistics

java.lang.Object
  extended by lio.misc.Statistics
      extended by lio.search.local.greedy.GreedyStatistics
All Implemented Interfaces:
LiOResource

public class GreedyStatistics
extends Statistics

Extends the Statistics so that the number of candidate steps evaluated to build a single solution is considered.


Constructor Summary
GreedyStatistics()
           
 
Method Summary
 void addNumCandidateSteps(int numCandidateSteps)
          Adds a number of candidate steps evaluated to build the solution.
 LiOResourceDefinition getDefinition()
          Return a LiOResDescription object with the information of each object.
 int getNumCandidateSteps()
           
 void init()
          Reset statistics.
 
Methods inherited from class lio.misc.Statistics
finish, getBestFitness, getbestFitnessTrace, getBestIndividual, getConvergenceVelocity, getEvaluationsTrace, getNumEvalsWithoutImproving, getNumEvaluations, getNumEvaluationsBest, getNumGenerations, getNumGenerationsBest, getNumGenerationsWithoutImproving, getNumIterations, getNumIterationsBest, getTime, getTimeBest, newEvaluation, newEvaluation, newGeneration, newIteration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GreedyStatistics

public GreedyStatistics()
Method Detail

getNumCandidateSteps

public int getNumCandidateSteps()
Returns:
the numCandidateSteps

init

public void init()
Reset statistics.

Overrides:
init in class Statistics

addNumCandidateSteps

public void addNumCandidateSteps(int numCandidateSteps)
Adds a number of candidate steps evaluated to build the solution.

Parameters:
numCandidateSteps - the numCandidateSteps to set

getDefinition

public LiOResourceDefinition getDefinition()
Return a LiOResDescription object with the information of each object. That object holds the name and all parameters that describe the object

Specified by:
getDefinition in interface LiOResource
Overrides:
getDefinition in class Statistics
Returns:
A definition of the object.