public final class RankedCandidate extends Object implements Comparable<RankedCandidate>
Node
with its fitness value.Constructor and Description |
---|
RankedCandidate(Node node,
double fitness)
Creates a
RankedCandidate which associates the given Node with the given fitness value. |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(RankedCandidate o) |
boolean |
equals(Object o) |
double |
getFitness() |
Node |
getNode() |
int |
hashCode() |
String |
toString() |
public RankedCandidate(Node node, double fitness)
RankedCandidate
which associates the given Node
with the given fitness value.public double getFitness()
public Node getNode()
public int compareTo(RankedCandidate o)
compareTo
in interface Comparable<RankedCandidate>
OakGP Genetic Programming Framework