public class ControlFlowDistance extends Object implements Comparable<ControlFlowDistance>
ControlFlowDistance class.
| Modifier and Type | Field and Description |
|---|---|
int |
approachLevel |
double |
branchDistance |
| Constructor and Description |
|---|
ControlFlowDistance()
Creates the 0-distance, meaning a distance having approachLevel and
branchDistance set to 0
|
ControlFlowDistance(int approachLevel,
double branchDistance)
Can be used to create an arbitrary ControlFlowDistance
However approachLevel and branchDistance are expected to be positive
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ControlFlowDistance o) |
int |
getApproachLevel()
Getter for the field
approachLevel. |
double |
getBranchDistance()
Getter for the field
branchDistance. |
double |
getResultingBranchFitness()
getResultingBranchFitness
|
void |
increaseApproachLevel()
increaseApproachLevel
|
void |
setApproachLevel(int approachLevel)
Setter for the field
approachLevel. |
void |
setBranchDistance(double branchDistance)
Setter for the field
branchDistance. |
String |
toString() |
public ControlFlowDistance()
public ControlFlowDistance(int approachLevel,
double branchDistance)
approachLevel - a int.branchDistance - a double.public int compareTo(ControlFlowDistance o)
compareTo in interface Comparable<ControlFlowDistance>public void increaseApproachLevel()
increaseApproachLevel
public int getApproachLevel()
Getter for the field approachLevel.
public void setApproachLevel(int approachLevel)
Setter for the field approachLevel.
approachLevel - a int.public double getBranchDistance()
Getter for the field branchDistance.
public void setBranchDistance(double branchDistance)
Setter for the field branchDistance.
branchDistance - a double.public double getResultingBranchFitness()
getResultingBranchFitness
Copyright © 2010–2017 EvoSuite. All rights reserved.