Class DelayingNodeEvaluator<N,A,V extends java.lang.Comparable<V>>
- java.lang.Object
-
- ai.libs.jaicore.search.algorithms.standard.bestfirst.nodeevaluation.DecoratingNodeEvaluator<N,A,V>
-
- ai.libs.jaicore.search.algorithms.standard.bestfirst.nodeevaluation.DelayingNodeEvaluator<N,A,V>
-
- Type Parameters:
N
-A
-V
-
- All Implemented Interfaces:
org.api4.java.ai.graphsearch.problem.pathsearch.pathevaluation.ICancelablePathEvaluator
,org.api4.java.ai.graphsearch.problem.pathsearch.pathevaluation.IPathEvaluator<N,A,V>
,org.api4.java.ai.graphsearch.problem.pathsearch.pathevaluation.IPotentiallyGraphDependentPathEvaluator<N,A,V>
,org.api4.java.ai.graphsearch.problem.pathsearch.pathevaluation.IPotentiallySolutionReportingPathEvaluator<N,A,V>
,org.api4.java.common.attributedobjects.IGetter<org.api4.java.datastructure.graph.ILabeledPath<N,A>,V>
,org.api4.java.common.attributedobjects.IObjectEvaluator<org.api4.java.datastructure.graph.ILabeledPath<N,A>,V>
,org.api4.java.common.control.ILoggingCustomizable
public class DelayingNodeEvaluator<N,A,V extends java.lang.Comparable<V>> extends DecoratingNodeEvaluator<N,A,V>
This path evaluator can be used to artificially delay the computation of scores. This can be a helpful property in the simulated benchmarking of algorithms for costly evaluations.
-
-
Constructor Summary
Constructors Constructor Description DelayingNodeEvaluator(org.api4.java.ai.graphsearch.problem.pathsearch.pathevaluation.IPathEvaluator<N,A,V> evaluator, org.api4.java.algorithm.Timeout delay)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V
evaluate(org.api4.java.datastructure.graph.ILabeledPath<N,A> path)
-
Methods inherited from class ai.libs.jaicore.search.algorithms.standard.bestfirst.nodeevaluation.DecoratingNodeEvaluator
cancelActiveTasks, doesDecoratedEvaluatorReportSolutions, getEvaluator, getLoggerName, isDecoratedEvaluatorCancelable, isDecoratedEvaluatorGraphDependent, registerSolutionListener, reportsSolutions, requiresGraphGenerator, setGenerator, setLoggerName
-
-
-
-
Method Detail
-
evaluate
public V evaluate(org.api4.java.datastructure.graph.ILabeledPath<N,A> path) throws org.api4.java.ai.graphsearch.problem.pathsearch.pathevaluation.PathEvaluationException, java.lang.InterruptedException
- Specified by:
evaluate
in interfaceorg.api4.java.common.attributedobjects.IObjectEvaluator<N,A>
- Specified by:
evaluate
in interfaceorg.api4.java.ai.graphsearch.problem.pathsearch.pathevaluation.IPathEvaluator<N,A,V extends java.lang.Comparable<V>>
- Overrides:
evaluate
in classDecoratingNodeEvaluator<N,A,V extends java.lang.Comparable<V>>
- Throws:
org.api4.java.ai.graphsearch.problem.pathsearch.pathevaluation.PathEvaluationException
java.lang.InterruptedException
-
-