public class MaxFitnessEvaluationsStoppingCondition extends StoppingConditionImpl
| Modifier and Type | Field and Description |
|---|---|
protected static long |
currentEvaluation
Maximum number of iterations
|
protected long |
maxEvaluations
Maximum number of evaluations
|
| Constructor and Description |
|---|
MaxFitnessEvaluationsStoppingCondition() |
| Modifier and Type | Method and Description |
|---|---|
void |
fitnessEvaluation(Chromosome individual)
Called after every single fitness evaluation
|
void |
forceCurrentValue(long value)
Force a specific amount of used up budget.
|
long |
getCurrentValue()
How much of the budget have we used up
|
long |
getLimit()
Get upper limit of resources
Mainly used for toString()
|
static long |
getNumFitnessEvaluations()
Static getter method
|
boolean |
isFinished()
isFinished
|
void |
reset()
Reset everything
|
void |
setLimit(long limit)
Set new upper limit of resources
|
getType, getValueString, iteration, modification, searchFinished, searchStarted, toStringprotected long maxEvaluations
protected static long currentEvaluation
public MaxFitnessEvaluationsStoppingCondition()
public boolean isFinished()
isFinished
Stop when maximum number of fitness evaluations has been reachedpublic void fitnessEvaluation(Chromosome individual)
fitnessEvaluation in interface SearchListenerfitnessEvaluation in class StoppingConditionImplindividual - a Chromosome object.public static long getNumFitnessEvaluations()
public void reset()
public void setLimit(long limit)
limit - a long.public long getLimit()
public long getCurrentValue()
public void forceCurrentValue(long value)
value - The new amount of used up budget for this StoppingConditionCopyright © 2010–2017 EvoSuite. All rights reserved.