|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlio.misc.StopCondition
public class StopCondition
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 |
---|
public StopCondition()
Method Detail |
---|
public boolean stop()
public LiOResourceDefinition getDefinition()
getDefinition
in interface LiOResource
public int getMaxNumEvaluations()
public void setMaxNumEvaluations(int maxNumEvaluations)
maxNumEvaluations
- New value of property maxNumEvaluations.public int getMaxNumIterations()
public void setMaxNumIterations(int maxNumIterations)
maxNumIterations
- New value of property maxNumIterations.public int getMaxNumEvaluationsWithoutImproving()
public void setMaxNumEvaluationsWithoutImproving(int maxNumEvaluationsWithoutImproving)
maxNumEvaluationsWithoutImproving
- New value of property maxNumEvaluationsWithoutImproving.public int getMaxNumIterationsWithoutImproving()
public void setMaxNumIterationsWithoutImproving(int maxNumIterationsWithoutImproving)
maxNumIterationsWithoutImproving
- New value of property maxNumIterationsWithoutImproving.public long getMaxTime()
public void setMaxTime(long maxTime)
maxTime
- The maxTime to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |