lio.search.local.greedy
Class GreedySearchOutput

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

public class GreedySearchOutput
extends SearchOutput

Extends the SearchOutput so that it can provide information for greedy based algorithms, which mainly consists in the number of candidate steps that have been evaluated in the solution construction.

Author:
Luis

Field Summary
 
Fields inherited from class lio.misc.SearchOutput
showBestFitness, showBestIndividual, showNumEvaluations, showNumEvaluationsBest, showNumIterations, showNumIterationsBest, showTimeBest, showTotalTime
 
Constructor Summary
GreedySearchOutput()
          Constructor
 
Method Summary
 LiOResourceDefinition getDefinition()
          Return a LiOResDescription object with the information of each object.
 java.lang.String getFormattedOutput()
          Builds the output by gathering data from statistics and according to the setting of the resource in a formatted way suitable for writing in files.
 java.lang.String getOutput()
          Builds the output by gathering data from statistics and according to the setting of the resource.
 boolean isShowCanditateSteps()
           
 void setShowCanditateSteps(boolean showCanditateSteps)
           
 
Methods inherited from class lio.misc.SearchOutput
getAlgorithmName, getTag, isShowBestFitness, isShowBestIndividual, isShowNumEvaluations, isShowNumEvaluationsBest, isShowNumIterations, isShowNumIterationsBest, isShowTimeBest, isShowTotalTime, setAlgorithmName, setShowBestFitness, setShowBestIndividual, setShowNumEvaluations, setShowNumEvaluationsBest, setShowNumIterations, setShowNumIterationsBest, setShowTimeBest, setShowTotalTime, setTag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GreedySearchOutput

public GreedySearchOutput()
Constructor

Method Detail

getOutput

public java.lang.String getOutput()
Builds the output by gathering data from statistics and according to the setting of the resource.

Overrides:
getOutput in class SearchOutput
Returns:
The statistics of the search.

getFormattedOutput

public java.lang.String getFormattedOutput()
Builds the output by gathering data from statistics and according to the setting of the resource in a formatted way suitable for writing in files.

Overrides:
getFormattedOutput in class SearchOutput
Returns:
The statistics of the search.

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 SearchOutput
Returns:
A definition of the object.

isShowCanditateSteps

public boolean isShowCanditateSteps()
Returns:
the showCanditateSteps

setShowCanditateSteps

public void setShowCanditateSteps(boolean showCanditateSteps)
Parameters:
showCanditateSteps - the showCanditateSteps to set