public class MaxStatementsStoppingCondition extends StoppingConditionImpl
MaxStatementsStoppingCondition class.
| Modifier and Type | Field and Description |
|---|---|
protected static long |
currentStatement
Maximum number of iterations
|
| Constructor and Description |
|---|
MaxStatementsStoppingCondition() |
| Modifier and Type | Method and Description |
|---|---|
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 |
getNumExecutedStatements()
getNumExecutedStatements
|
boolean |
isFinished()
isFinished
|
void |
reset()
Reset everything
|
void |
setLimit(long limit)
Set new upper limit of resources
|
static void |
setNumExecutedStatements(long value)
getNumExecutedStatements
|
static void |
statementsExecuted(int num)
Add a given number of executed statements
|
fitnessEvaluation, getType, getValueString, iteration, modification, searchFinished, searchStarted, toStringpublic static void statementsExecuted(int num)
num - a int.public boolean isFinished()
isFinished
Finished, if the maximum number of statements has been reachedpublic void reset()
public static long getNumExecutedStatements()
getNumExecutedStatements
public static void setNumExecutedStatements(long value)
getNumExecutedStatements
public long getCurrentValue()
public long getLimit()
public void forceCurrentValue(long value)
value - The new amount of used up budget for this StoppingConditionpublic void setLimit(long limit)
StoppingConditionlimit - a long.Copyright © 2010–2017 EvoSuite. All rights reserved.