Class SameGamePathEvaluator

  • All Implemented Interfaces:
    org.api4.java.ai.graphsearch.problem.pathsearch.pathevaluation.IPathEvaluator<SameGameNode,​ai.libs.jaicore.problems.samegame.SameGameCell,​java.lang.Double>, org.api4.java.common.attributedobjects.IGetter<org.api4.java.datastructure.graph.ILabeledPath<SameGameNode,​ai.libs.jaicore.problems.samegame.SameGameCell>,​java.lang.Double>, org.api4.java.common.attributedobjects.IObjectEvaluator<org.api4.java.datastructure.graph.ILabeledPath<SameGameNode,​ai.libs.jaicore.problems.samegame.SameGameCell>,​java.lang.Double>

    public class SameGamePathEvaluator
    extends java.lang.Object
    implements org.api4.java.ai.graphsearch.problem.pathsearch.pathevaluation.IPathEvaluator<SameGameNode,​ai.libs.jaicore.problems.samegame.SameGameCell,​java.lang.Double>
    • Constructor Summary

      Constructors 
      Constructor Description
      SameGamePathEvaluator​(ai.libs.jaicore.problems.samegame.SameGameState initState, boolean maximize, boolean relativeScores)  
    • Constructor Detail

      • SameGamePathEvaluator

        public SameGamePathEvaluator​(ai.libs.jaicore.problems.samegame.SameGameState initState,
                                     boolean maximize,
                                     boolean relativeScores)
    • Method Detail

      • evaluate

        public java.lang.Double evaluate​(org.api4.java.datastructure.graph.ILabeledPath<SameGameNode,​ai.libs.jaicore.problems.samegame.SameGameCell> 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<org.api4.java.datastructure.graph.ILabeledPath<SameGameNode,​ai.libs.jaicore.problems.samegame.SameGameCell>,​java.lang.Double>
        Specified by:
        evaluate in interface org.api4.java.ai.graphsearch.problem.pathsearch.pathevaluation.IPathEvaluator<SameGameNode,​ai.libs.jaicore.problems.samegame.SameGameCell,​java.lang.Double>
        Throws:
        org.api4.java.ai.graphsearch.problem.pathsearch.pathevaluation.PathEvaluationException
        java.lang.InterruptedException
      • getOriginalScoreFromRelativeScore

        public double getOriginalScoreFromRelativeScore​(double relativeScore)
      • isMaximize

        public boolean isMaximize()
      • getMinScore

        public int getMinScore()
      • getMaxScore

        public int getMaxScore()
      • isRelativeScores

        public boolean isRelativeScores()