public class DefaultLocalSearchObjective<T extends Chromosome> extends Object implements LocalSearchObjective<T>, Serializable
| Constructor and Description |
|---|
DefaultLocalSearchObjective() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFitnessFunction(FitnessFunction<? extends Chromosome> fitness) |
List<FitnessFunction<? extends Chromosome>> |
getFitnessFunctions()
Returns a list with all the fitness functions stored in this local search
objective
|
int |
hasChanged(T chromosome)
This operation should not be invoked for this class
|
boolean |
hasImproved(T chromosome)
This operation should not be invoked for this class
|
boolean |
hasNotWorsened(T chromosome)
This operation should not be invoked for this class
|
boolean |
isDone()
This operation should not be invoked for this class
|
boolean |
isMaximizationObjective()
Returns true if all the fitness functions are maximising functions
(Observe that it is not possible to store simoustaneously maximising and
minimising fitness functions)
|
public boolean isDone()
isDone in interface LocalSearchObjective<T extends Chromosome>public boolean hasImproved(T chromosome)
hasImproved in interface LocalSearchObjective<T extends Chromosome>chromosome - a Chromosome object.public void addFitnessFunction(FitnessFunction<? extends Chromosome> fitness)
addFitnessFunction in interface LocalSearchObjective<T extends Chromosome>public boolean isMaximizationObjective()
LocalSearchObjectiveisMaximizationObjective in interface LocalSearchObjective<T extends Chromosome>public List<FitnessFunction<? extends Chromosome>> getFitnessFunctions()
getFitnessFunctions in interface LocalSearchObjective<T extends Chromosome>FitnessFunction object.public int hasChanged(T chromosome)
hasChanged in interface LocalSearchObjective<T extends Chromosome>chromosome - a Chromosome object.public boolean hasNotWorsened(T chromosome)
hasNotWorsened in interface LocalSearchObjective<T extends Chromosome>chromosome - a Chromosome object.Copyright © 2010–2017 EvoSuite. All rights reserved.