S
- The decoder source solution typeT
- The decoder target solution typepublic final class DecodingEvaluator<S extends Solution<?>,T extends Solution<?>> extends java.lang.Object implements Evaluator<S>
An evaluator implementation which applies a SolutionDecoder
before delegating to some other SolutionEvaluator
, effectively acting as a bridge.
Modifier and Type | Class and Description |
---|---|
static interface |
io.vavr.Lambda.Memoized |
Modifier and Type | Field and Description |
---|---|
private SolutionDecoder<S,T> |
solutionDecoder |
private Evaluator<T> |
solutionEvaluator |
Constructor and Description |
---|
DecodingEvaluator(SolutionDecoder<S,T> solutionDecoder,
Evaluator<T> solutionEvaluator) |
Modifier and Type | Method and Description |
---|---|
double |
evaluate(S solution) |
default boolean |
isMemoized() |
private final SolutionDecoder<S extends Solution<?>,T extends Solution<?>> solutionDecoder
public DecodingEvaluator(SolutionDecoder<S,T> solutionDecoder, Evaluator<T> solutionEvaluator)