Class SameGamePathEvaluator
- java.lang.Object
-
- ai.libs.jaicore.search.exampleproblems.samegame.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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Double
evaluate(org.api4.java.datastructure.graph.ILabeledPath<SameGameNode,ai.libs.jaicore.problems.samegame.SameGameCell> path)
int
getMaxScore()
int
getMinScore()
double
getOriginalScoreFromRelativeScore(double relativeScore)
boolean
isMaximize()
boolean
isRelativeScores()
-
-
-
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 interfaceorg.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 interfaceorg.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()
-
-