public abstract class MutationSuiteFitness extends TestSuiteFitnessFunction
Abstract MutationSuiteFitness class.
| Modifier and Type | Field and Description |
|---|---|
protected BranchCoverageSuiteFitness |
branchFitness |
Map<Integer,MutationTestFitness> |
mutantMap |
Set<Integer> |
mutants |
protected List<MutationTestFitness> |
mutationGoals |
Set<Integer> |
removedMutants |
Set<Integer> |
toRemoveMutants |
logger| Constructor and Description |
|---|
MutationSuiteFitness() |
| Modifier and Type | Method and Description |
|---|---|
abstract double |
getFitness(AbstractTestSuiteChromosome<? extends ExecutableChromosome> individual)
Calculate and set fitness function #TODO the 'set fitness' part should be
done by some abstract super class of all FitnessFunctions
|
int |
getNumMutants() |
ExecutionResult |
runTest(TestCase test)
Execute a test case
|
ExecutionResult |
runTest(TestCase test,
Mutation mutant)
runTest
|
boolean |
updateCoveredGoals()
if the fitness function contains an archive, updates the archive and the fitness values of the population, and returns true.
|
isMaximizationFunction, runTestSuitegetBestStoredIndividual, normalize, updateIndividual, updateIndividualprotected final BranchCoverageSuiteFitness branchFitness
protected final List<MutationTestFitness> mutationGoals
public final Map<Integer,MutationTestFitness> mutantMap
public boolean updateCoveredGoals()
FitnessFunctionupdateCoveredGoals in class FitnessFunction<AbstractTestSuiteChromosome<? extends ExecutableChromosome>>public ExecutionResult runTest(TestCase test)
runTest in class TestSuiteFitnessFunctiontest - The test case to executepublic int getNumMutants()
public ExecutionResult runTest(TestCase test, Mutation mutant)
runTest
test - a TestCase object.mutant - a Mutation object.ExecutionResult object.public abstract double getFitness(AbstractTestSuiteChromosome<? extends ExecutableChromosome> individual)
getFitness in class FitnessFunction<AbstractTestSuiteChromosome<? extends ExecutableChromosome>>individual - a Chromosome object.Copyright © 2010–2017 EvoSuite. All rights reserved.