lio.misc
Class SearchOutput

java.lang.Object
  extended by lio.misc.SearchOutput
All Implemented Interfaces:
LiOResource
Direct Known Subclasses:
GreedySearchOutput

public class SearchOutput
extends java.lang.Object
implements LiOResource

This object allows determining which information from statistics must be shown.


Field Summary
protected  boolean showBestFitness
          Different parameters that indicates whether to show some information.
protected  boolean showBestIndividual
          Different parameters that indicates whether to show some information.
protected  boolean showNumEvaluations
          Different parameters that indicates whether to show some information.
protected  boolean showNumEvaluationsBest
          Different parameters that indicates whether to show some information.
protected  boolean showNumIterations
          Different parameters that indicates whether to show some information.
protected  boolean showNumIterationsBest
          Different parameters that indicates whether to show some information.
protected  boolean showTimeBest
          Different parameters that indicates whether to show some information.
protected  boolean showTotalTime
          Different parameters that indicates whether to show some information.
 
Constructor Summary
SearchOutput()
          Constructor
SearchOutput(boolean bestFitness, boolean numEvaluations, boolean numEvaluationsBest, boolean numIterations, boolean numIterationsBest, boolean timeBest, boolean totalTime, java.lang.String tag)
          Constructor
 
Method Summary
 java.lang.String getAlgorithmName()
           
 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.
 java.lang.String getTag()
           
 boolean isShowBestFitness()
           
 boolean isShowBestIndividual()
           
 boolean isShowNumEvaluations()
           
 boolean isShowNumEvaluationsBest()
           
 boolean isShowNumIterations()
           
 boolean isShowNumIterationsBest()
           
 boolean isShowTimeBest()
           
 boolean isShowTotalTime()
           
 void setAlgorithmName(java.lang.String algorithmName)
           
 void setShowBestFitness(boolean showBestFitness)
           
 void setShowBestIndividual(boolean showBestIndividual)
           
 void setShowNumEvaluations(boolean showNumEvaluations)
           
 void setShowNumEvaluationsBest(boolean showNumEvaluationsBest)
           
 void setShowNumIterations(boolean showNumIterations)
           
 void setShowNumIterationsBest(boolean showNumIterationsBest)
           
 void setShowTimeBest(boolean showTimeBest)
           
 void setShowTotalTime(boolean showTotalTime)
           
 void setTag(java.lang.String tag)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

showBestFitness

protected boolean showBestFitness
Different parameters that indicates whether to show some information.


showNumIterationsBest

protected boolean showNumIterationsBest
Different parameters that indicates whether to show some information.


showNumIterations

protected boolean showNumIterations
Different parameters that indicates whether to show some information.


showNumEvaluationsBest

protected boolean showNumEvaluationsBest
Different parameters that indicates whether to show some information.


showNumEvaluations

protected boolean showNumEvaluations
Different parameters that indicates whether to show some information.


showTimeBest

protected boolean showTimeBest
Different parameters that indicates whether to show some information.


showTotalTime

protected boolean showTotalTime
Different parameters that indicates whether to show some information.


showBestIndividual

protected boolean showBestIndividual
Different parameters that indicates whether to show some information.

Constructor Detail

SearchOutput

public SearchOutput()
Constructor


SearchOutput

public SearchOutput(boolean bestFitness,
                    boolean numEvaluations,
                    boolean numEvaluationsBest,
                    boolean numIterations,
                    boolean numIterationsBest,
                    boolean timeBest,
                    boolean totalTime,
                    java.lang.String tag)
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.

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.

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

isShowBestFitness

public boolean isShowBestFitness()
Returns:
Returns the showBestFitness.

setShowBestFitness

public void setShowBestFitness(boolean showBestFitness)
Parameters:
showBestFitness - The showBestFitness to set.

isShowNumEvaluations

public boolean isShowNumEvaluations()
Returns:
Returns the showNumEvaluations.

setShowNumEvaluations

public void setShowNumEvaluations(boolean showNumEvaluations)
Parameters:
showNumEvaluations - The showNumEvaluations to set.

isShowNumEvaluationsBest

public boolean isShowNumEvaluationsBest()
Returns:
Returns the showNumEvaluationsBest.

setShowNumEvaluationsBest

public void setShowNumEvaluationsBest(boolean showNumEvaluationsBest)
Parameters:
showNumEvaluationsBest - The showNumEvaluationsBest to set.

isShowNumIterations

public boolean isShowNumIterations()
Returns:
Returns the showNumIterations.

setShowNumIterations

public void setShowNumIterations(boolean showNumIterations)
Parameters:
showNumIterations - The showNumIterations to set.

isShowNumIterationsBest

public boolean isShowNumIterationsBest()
Returns:
Returns the showNumIterationsBest.

setShowNumIterationsBest

public void setShowNumIterationsBest(boolean showNumIterationsBest)
Parameters:
showNumIterationsBest - The showNumIterationsBest to set.

isShowTimeBest

public boolean isShowTimeBest()
Returns:
Returns the showTimeBest.

setShowTimeBest

public void setShowTimeBest(boolean showTimeBest)
Parameters:
showTimeBest - The showTimeBest to set.

isShowTotalTime

public boolean isShowTotalTime()
Returns:
Returns the showTotalTime.

setShowTotalTime

public void setShowTotalTime(boolean showTotalTime)
Parameters:
showTotalTime - The showTotalTime to set.

getTag

public java.lang.String getTag()
Returns:
Returns the tag.

setTag

public void setTag(java.lang.String tag)
Parameters:
tag - The tag to set.

getAlgorithmName

public java.lang.String getAlgorithmName()
Returns:
Returns the algorithmName.

setAlgorithmName

public void setAlgorithmName(java.lang.String algorithmName)
Parameters:
algorithmName - The algorithmName to set.

isShowBestIndividual

public boolean isShowBestIndividual()
Returns:
Returns the showBestIndividual.

setShowBestIndividual

public void setShowBestIndividual(boolean showBestIndividual)
Parameters:
showBestIndividual - The showBestIndividual to set.