public class GlobalTimeStoppingCondition extends StoppingConditionImpl
GlobalTimeStoppingCondition class.
| Modifier and Type | Field and Description |
|---|---|
protected static long |
pauseTime
Constant
pause_time=0L |
protected static long |
startTime
Assume the search has not started until start_time != 0
|
| Constructor and Description |
|---|
GlobalTimeStoppingCondition() |
| Modifier and Type | Method and Description |
|---|---|
void |
forceCurrentValue(long value)
Force a specific amount of used up budget.
|
static void |
forceReset()
forceReset
|
void |
fullReset()
Fully resets the stopping condition.
|
long |
getCurrentValue()
How much of the budget have we used up
|
long |
getLimit()
Get upper limit of resources
Mainly used for toString()
|
boolean |
isFinished()
isFinished
|
void |
pause()
Remember start pause time
|
void |
reset()
Reset everything
|
void |
resume()
Change start time after MA
|
void |
searchStarted(GeneticAlgorithm<?> algorithm)
Called when a new search is started
|
void |
setLimit(long limit)
Set new upper limit of resources
|
fitnessEvaluation, getType, getValueString, iteration, modification, searchFinished, toStringprotected static long startTime
protected static long pauseTime
pause_time=0Lpublic void searchStarted(GeneticAlgorithm<?> algorithm)
searchStarted in interface SearchListenersearchStarted in class StoppingConditionImplalgorithm - a GeneticAlgorithm object.public long getCurrentValue()
public boolean isFinished()
isFinished
public void reset()
public void fullReset()
public void setLimit(long limit)
limit - a long.public long getLimit()
public static void forceReset()
forceReset
public void forceCurrentValue(long value)
value - The new amount of used up budget for this StoppingConditionpublic void pause()
public void resume()
Copyright © 2010–2017 EvoSuite. All rights reserved.