lio.misc
Class StopCondition

java.lang.Object
  extended by lio.misc.StopCondition
All Implemented Interfaces:
LiOResource

public class StopCondition
extends java.lang.Object
implements LiOResource

This class implements the necessary functions to check whether an algorithm must stop the search or not. Other conditions must extend this.


Constructor Summary
StopCondition()
           
 
Method Summary
 LiOResourceDefinition getDefinition()
          Return a LiOResDescription object with the information of each object.
 int getMaxNumEvaluations()
          Getter for property maxNumEvaluations.
 int getMaxNumEvaluationsWithoutImproving()
          Getter for property maxNumEvaluationsWithoutImproving.
 int getMaxNumIterations()
          Getter for property maxNumIterations.
 int getMaxNumIterationsWithoutImproving()
          Getter for property maxNumIterationsWithoutImproving.
 long getMaxTime()
           
 void setMaxNumEvaluations(int maxNumEvaluations)
          Setter for property maxNumEvaluations.
 void setMaxNumEvaluationsWithoutImproving(int maxNumEvaluationsWithoutImproving)
          Setter for property maxNumEvaluationsWithoutImproving.
 void setMaxNumIterations(int maxNumIterations)
          Setter for property maxNumIterations.
 void setMaxNumIterationsWithoutImproving(int maxNumIterationsWithoutImproving)
          Setter for property maxNumIterationsWithoutImproving.
 void setMaxTime(long maxTime)
           
 boolean stop()
          Whether the algorithm must stop or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StopCondition

public StopCondition()
Method Detail

stop

public boolean stop()
Whether the algorithm must stop or not.

Returns:
true If the algorithm must stop.

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.

getMaxNumEvaluations

public int getMaxNumEvaluations()
Getter for property maxNumEvaluations.

Returns:
Value of property maxNumEvaluations.

setMaxNumEvaluations

public void setMaxNumEvaluations(int maxNumEvaluations)
Setter for property maxNumEvaluations.

Parameters:
maxNumEvaluations - New value of property maxNumEvaluations.

getMaxNumIterations

public int getMaxNumIterations()
Getter for property maxNumIterations.

Returns:
Value of property maxNumIterations.

setMaxNumIterations

public void setMaxNumIterations(int maxNumIterations)
Setter for property maxNumIterations.

Parameters:
maxNumIterations - New value of property maxNumIterations.

getMaxNumEvaluationsWithoutImproving

public int getMaxNumEvaluationsWithoutImproving()
Getter for property maxNumEvaluationsWithoutImproving.

Returns:
Value of property maxNumEvaluationsWithoutImproving.

setMaxNumEvaluationsWithoutImproving

public void setMaxNumEvaluationsWithoutImproving(int maxNumEvaluationsWithoutImproving)
Setter for property maxNumEvaluationsWithoutImproving.

Parameters:
maxNumEvaluationsWithoutImproving - New value of property maxNumEvaluationsWithoutImproving.

getMaxNumIterationsWithoutImproving

public int getMaxNumIterationsWithoutImproving()
Getter for property maxNumIterationsWithoutImproving.

Returns:
Value of property maxNumIterationsWithoutImproving.

setMaxNumIterationsWithoutImproving

public void setMaxNumIterationsWithoutImproving(int maxNumIterationsWithoutImproving)
Setter for property maxNumIterationsWithoutImproving.

Parameters:
maxNumIterationsWithoutImproving - New value of property maxNumIterationsWithoutImproving.

getMaxTime

public long getMaxTime()
Returns:
Returns the maxTime.

setMaxTime

public void setMaxTime(long maxTime)
Parameters:
maxTime - The maxTime to set.