|
Orbital library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object orbital.algorithm.template.EvaluativeAlgorithm.EvaluationComparator
public static class EvaluativeAlgorithm.EvaluationComparator
The canonical comparator induced by the evaluation function f(n).
For highest performance it might prove useful to cache most recent values of the evaluation function.
Constructor Summary | |
---|---|
EvaluativeAlgorithm.EvaluationComparator(EvaluativeAlgorithm a)
Create a new comparator for states compared by their evaluation values. |
|
EvaluativeAlgorithm.EvaluationComparator(Function evaluation)
Create a new comparator for states compared by their evaluation values. |
Method Summary | |
---|---|
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Compares according to evaluation function. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Constructor Detail |
---|
public EvaluativeAlgorithm.EvaluationComparator(Function evaluation)
evaluation
- the evaluation function used in order to compare two states.public EvaluativeAlgorithm.EvaluationComparator(EvaluativeAlgorithm a)
a
- the heuristic algorithm whose evaluation function
used in order to compare two states.Method Detail |
---|
public final int compare(java.lang.Object o1, java.lang.Object o2)
compare
in interface java.util.Comparator
|
Orbital library 1.3.0: 11 Apr 2009 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |