Class DelayingNodeEvaluator<N,​A,​V extends java.lang.Comparable<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 Detail

      • DelayingNodeEvaluator

        public DelayingNodeEvaluator​(org.api4.java.ai.graphsearch.problem.pathsearch.pathevaluation.IPathEvaluator<N,​A,​V> evaluator,
                                     org.api4.java.algorithm.Timeout delay)
    • 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 interface org.api4.java.common.attributedobjects.IObjectEvaluator<N,​A>
        Specified by:
        evaluate in interface org.api4.java.ai.graphsearch.problem.pathsearch.pathevaluation.IPathEvaluator<N,​A,​V extends java.lang.Comparable<V>>
        Overrides:
        evaluate in class DecoratingNodeEvaluator<N,​A,​V extends java.lang.Comparable<V>>
        Throws:
        org.api4.java.ai.graphsearch.problem.pathsearch.pathevaluation.PathEvaluationException
        java.lang.InterruptedException