public class DiversityObserver extends Object implements SearchListener
| Modifier and Type | Field and Description |
|---|---|
static int |
GAP_PENALTY |
| Constructor and Description |
|---|
DiversityObserver() |
| Modifier and Type | Method and Description |
|---|---|
void |
fitnessEvaluation(Chromosome individual)
Called after every single fitness evaluation
|
static double |
getNeedlemanWunschScore(TestCase test1,
TestCase test2)
Sequence alignment based distance
|
static double |
getSuiteSimilarity(TestSuiteChromosome suite1,
TestSuiteChromosome suite2)
Naive similarity comparison between suites simply consists of merging all tests to a single test
for each suite, and then comparing these tests
|
void |
iteration(GeneticAlgorithm<?> algorithm)
Called after each iteration of the search
|
void |
modification(Chromosome individual)
Called before a chromosome is mutated
|
static void |
printMatrix(int[][] matrix) |
void |
searchFinished(GeneticAlgorithm<?> algorithm)
Called after the last iteration
|
void |
searchStarted(GeneticAlgorithm<?> algorithm)
Called when a new search is started
|
public static final int GAP_PENALTY
public void iteration(GeneticAlgorithm<?> algorithm)
SearchListeneriteration in interface SearchListeneralgorithm - a GeneticAlgorithm object.public static double getSuiteSimilarity(TestSuiteChromosome suite1, TestSuiteChromosome suite2)
suite1 - suite2 - public static double getNeedlemanWunschScore(TestCase test1, TestCase test2)
test1 - test2 - public static void printMatrix(int[][] matrix)
public void searchStarted(GeneticAlgorithm<?> algorithm)
SearchListenersearchStarted 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.Copyright © 2010–2017 EvoSuite. All rights reserved.