|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.kumpe.hadooptimizer.EvaluationResult<I>
I - the individuals' typepublic final class EvaluationResult<I>
Represents an immutable result of an evaluation.
Note: a instance is considered immutable, so you should not modify
the contained individual. See getIndividual() for additional
hints.
| Constructor Summary | |
|---|---|
EvaluationResult(I individual,
double evaluation)
Creates a new EvaluationResult with the given
individual and its evaluation. |
|
| Method Summary | |
|---|---|
int |
compareTo(EvaluationResult<I> other)
Compares two EvaluationResults. |
boolean |
equals(Object obj)
Two EvaluationResults are equal, if their
evaluations are equal. |
double |
getEvaluation()
The calculated evaluation for the individual. |
I |
getIndividual()
Return the individual for which the evaluation was calculated. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EvaluationResult(I individual,
double evaluation)
EvaluationResult with the given
individual and its evaluation.
NullPointerException - if individual is null| Method Detail |
|---|
public double getEvaluation()
public I getIndividual()
Note: An instance of EvaluationResult is considered to be
immutable, but for performance reasons the contained individual is not
copied. So don't modify the returned individual.
nullpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
EvaluationResults are equal, if their
evaluations are equal.
equals in class Objectpublic int compareTo(EvaluationResult<I> other)
EvaluationResults.
The natural order of two EvaluationResults is the order of their
evaluations.
compareTo in interface Comparable<EvaluationResult<I>>Comparable.compareTo(Object)public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||