public class SocketStoppingCondition extends Object implements StoppingCondition
SocketStoppingCondition class.
| Constructor and Description |
|---|
SocketStoppingCondition() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept()
accept
|
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()
|
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
|
public void accept()
accept
public void searchStarted(GeneticAlgorithm<?> algorithm)
searchStarted in interface SearchListeneralgorithm - a GeneticAlgorithm object.public void iteration(GeneticAlgorithm<?> algorithm)
iteration in interface SearchListeneralgorithm - a GeneticAlgorithm object.public void searchFinished(GeneticAlgorithm<?> algorithm)
searchFinished in interface SearchListeneralgorithm - a GeneticAlgorithm object.public void fitnessEvaluation(Chromosome individual)
fitnessEvaluation in interface SearchListenerindividual - a Chromosome object.public void modification(Chromosome individual)
modification in interface SearchListenerindividual - a Chromosome object.public void forceCurrentValue(long value)
forceCurrentValue in interface StoppingConditionvalue - The new amount of used up budget for this StoppingConditionpublic long getCurrentValue()
getCurrentValue in interface StoppingConditionpublic long getLimit()
getLimit in interface StoppingConditionpublic boolean isFinished()
isFinished
isFinished in interface StoppingConditionpublic void reset()
reset in interface StoppingConditionpublic void setLimit(long limit)
setLimit in interface StoppingConditionlimit - a long.Copyright © 2010–2017 EvoSuite. All rights reserved.