public class AbstractMultiProblem.RepresentationWithScore extends java.lang.Object implements java.lang.Comparable<AbstractMultiProblem.RepresentationWithScore>
| Constructor and Description |
|---|
AbstractMultiProblem.RepresentationWithScore(AbstractRepresentation representation,
double score)
General constructor of this class requiring the representation and its fitness score to be stored.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(AbstractMultiProblem.RepresentationWithScore o) |
AbstractRepresentation |
getRepresentation()
Returns the candidate representation stored within this class.
|
double |
getScore()
Returns the score of the representation stored within the class.
|
void |
setScore(double score)
Sets the score of the contained representation.
|
public AbstractMultiProblem.RepresentationWithScore(AbstractRepresentation representation, double score)
representation - The candidate representation of this class.score - The score of this representation.public AbstractRepresentation getRepresentation()
public double getScore()
public void setScore(double score)
score - The new score to be used.public int compareTo(AbstractMultiProblem.RepresentationWithScore o)
compareTo in interface java.lang.Comparable<AbstractMultiProblem.RepresentationWithScore>