public class RegressionTestChromosome extends TestChromosome
| Modifier and Type | Field and Description |
|---|---|
boolean |
exCommentsAdded |
mutationHistory, testlastExecutionResult, lastMutationResultage, distance, rank, toBeUpdated| Constructor and Description |
|---|
RegressionTestChromosome() |
| Modifier and Type | Method and Description |
|---|---|
Chromosome |
clone()
clone
|
int |
compareSecondaryObjective(Chromosome o)
Secondary Objectives are specific to chromosome types
|
void |
copyCachedResults(ExecutableChromosome other)
copyCachedResults
|
void |
crossOver(Chromosome other,
int position1,
int position2)
Single point cross over
|
boolean |
equals(Object obj)
Two chromosomes are equal if their tests are equal
|
ExecutionResult |
executeForFitnessFunction(TestSuiteFitnessFunction testSuiteFitnessFunction)
executeForFitnessFunction
|
ExecutionResult |
getLastExecutionResult()
Getter for the field
lastExecutionResult. |
ExecutionResult |
getLastRegressionExecutionResult() |
TestChromosome |
getTheSameTestForTheOtherClassLoader() |
TestChromosome |
getTheTest() |
int |
hashCode() |
boolean |
localSearch(LocalSearchObjective objective)
Apply the local search
|
void |
mutate()
Apply mutation
|
void |
setLastExecutionResult(ExecutionResult lastExecutionResult)
Setter for the field
lastExecutionResult. |
void |
setLastRegressionExecutionResult(ExecutionResult lastExecutionResult)
Setter for the field
lastRegressionExecutionResult. |
void |
setTest(TestChromosome theTest) |
int |
size()
Return length of individual
|
protected void |
updateClassloader() |
addSecondaryObjective, clearMutationHistory, compareTo, deleteStatement, getMutationHistory, getSecondaryObjectives, getTestCase, hasException, hasRelevantMutations, mutationInsert, removeSecondaryObjective, reverseSecondaryObjective, setChanged, setTestCase, ShuffleSecondaryObjective, toStringclearCachedMutationResults, clearCachedResults, getLastExecutionResult, setLastExecutionResultaddFitness, addFitness, addFitness, addFitness, crossOver, getAge, getCoverage, getCoverage, getCoverageInstanceOf, getCoverageValues, getDistance, getFitness, getFitness, getFitnessInstanceOf, getFitnessValues, getNumOfCoveredGoals, getNumOfCoveredGoals, getNumOfNotCoveredGoals, getNumOfNotCoveredGoals, getNumsNotCoveredGoals, getNumsOfCoveredGoals, getPreviousFitnessValues, getRank, hasExecutedFitness, hasFitnessChanged, hasLocalSearchBeenApplied, isChanged, isToBeUpdated, isToBeUpdated, setCoverage, setCoverageValues, setDistance, setFitness, setFitnessValues, setLocalSearchApplied, setNumOfCoveredGoals, setNumOfNotCoveredGoals, setNumsOfCoveredGoals, setNumsOfNotCoveredGoals, setPreviousFitnessValues, setRank, updateAgepublic void copyCachedResults(ExecutableChromosome other)
TestChromosomecopyCachedResults
copyCachedResults in class TestChromosomeother - a ExecutableChromosome object.public ExecutionResult executeForFitnessFunction(TestSuiteFitnessFunction testSuiteFitnessFunction)
TestChromosomeexecuteForFitnessFunction
executeForFitnessFunction in class TestChromosometestSuiteFitnessFunction - a TestSuiteFitnessFunction object.ExecutionResult object.public Chromosome clone()
TestChromosomeclone
Create a deep copy of the chromosome Create a deep copy of the chromosomeclone in interface PublicCloneable<Chromosome>clone in class TestChromosomepublic int hashCode()
TestChromosomehashCode in class TestChromosomepublic boolean equals(Object obj)
TestChromosomeequals in class TestChromosomepublic int compareSecondaryObjective(Chromosome o)
ChromosomecompareSecondaryObjective in class TestChromosomeo - a Chromosome object.public void mutate()
TestChromosomemutate in class TestChromosomepublic void crossOver(Chromosome other, int position1, int position2) throws ConstructionFailedException
TestChromosomecrossOver in class TestChromosomeother - a Chromosome object.position1 - a int.position2 - a int.ConstructionFailedException - if any.protected void updateClassloader()
public boolean localSearch(LocalSearchObjective objective)
TestChromosomelocalSearch in class TestChromosomeobjective - a LocalSearchObjective
object.public int size()
TestChromosomesize in class TestChromosomepublic void setTest(TestChromosome theTest)
theTest - the theTest to setpublic TestChromosome getTheTest()
public TestChromosome getTheSameTestForTheOtherClassLoader()
public void setLastExecutionResult(ExecutionResult lastExecutionResult)
TestChromosomeSetter for the field lastExecutionResult.
setLastExecutionResult in class TestChromosomelastExecutionResult - a ExecutionResult object.public void setLastRegressionExecutionResult(ExecutionResult lastExecutionResult)
Setter for the field lastRegressionExecutionResult.
lastExecutionResult - a ExecutionResult object.public ExecutionResult getLastExecutionResult()
ExecutableChromosomeGetter for the field lastExecutionResult.
getLastExecutionResult in class ExecutableChromosomeExecutionResult object.public ExecutionResult getLastRegressionExecutionResult()
Copyright © 2010–2017 EvoSuite. All rights reserved.