public class RMIStoppingCondition extends Object implements StoppingCondition
| 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
|
static RMIStoppingCondition |
getInstance() |
long |
getLimit()
Get upper limit of resources
Mainly used for toString()
|
boolean |
isFinished()
isFinished
|
void |
iteration(GeneticAlgorithm<?> algorithm)
Called after each iteration of the search
|
void |
modification(Chromosome individual)
Called before a chromosome is mutated
|
void |
reset()
Reset everything
|
void |
searchFinished(GeneticAlgorithm<?> algorithm)
Called after the last iteration
|
void |
searchStarted(GeneticAlgorithm<?> algorithm)
Called when a new search is started
|
void |
setLimit(long limit)
Set new upper limit of resources
|
void |
stop() |
String |
toString() |
public static RMIStoppingCondition getInstance()
public void stop()
public void searchStarted(GeneticAlgorithm<?> algorithm)
SearchListenersearchStarted in interface SearchListeneralgorithm - a GeneticAlgorithm object.public void iteration(GeneticAlgorithm<?> algorithm)
SearchListeneriteration in interface SearchListeneralgorithm - a GeneticAlgorithm object.public void searchFinished(GeneticAlgorithm<?> algorithm)
SearchListenersearchFinished in interface SearchListeneralgorithm - a GeneticAlgorithm object.public void fitnessEvaluation(Chromosome individual)
SearchListenerfitnessEvaluation in interface SearchListenerindividual - a Chromosome object.public void modification(Chromosome individual)
SearchListenermodification in interface SearchListenerindividual - a Chromosome object.public void forceCurrentValue(long value)
StoppingConditionforceCurrentValue in interface StoppingConditionvalue - The new amount of used up budget for this StoppingConditionpublic long getCurrentValue()
StoppingConditiongetCurrentValue in interface StoppingConditionpublic long getLimit()
StoppingConditiongetLimit in interface StoppingConditionpublic boolean isFinished()
StoppingConditionisFinished
isFinished in interface StoppingConditionpublic void reset()
StoppingConditionreset in interface StoppingConditionpublic void setLimit(long limit)
StoppingConditionsetLimit in interface StoppingConditionlimit - a long.Copyright © 2010–2017 EvoSuite. All rights reserved.