Class BalancedGraphSearchWithPathEvaluationsProblem
- java.lang.Object
-
- ai.libs.jaicore.search.probleminputs.GraphSearchInput<N,A>
-
- ai.libs.jaicore.search.probleminputs.GraphSearchWithPathEvaluationsInput<ITransparentTreeNode,java.lang.Integer,java.lang.Double>
-
- ai.libs.jaicore.search.syntheticgraphs.graphmodels.balanced.BalancedGraphSearchWithPathEvaluationsProblem
-
- All Implemented Interfaces:
ISyntheticTreasureIslandProblem,org.api4.java.ai.graphsearch.problem.IPathSearchInput<ITransparentTreeNode,java.lang.Integer>,org.api4.java.ai.graphsearch.problem.IPathSearchWithPathEvaluationsInput<ITransparentTreeNode,java.lang.Integer,java.lang.Double>
public class BalancedGraphSearchWithPathEvaluationsProblem extends GraphSearchWithPathEvaluationsInput<ITransparentTreeNode,java.lang.Integer,java.lang.Double> implements ISyntheticTreasureIslandProblem
-
-
Constructor Summary
Constructors Constructor Description BalancedGraphSearchWithPathEvaluationsProblem(int branchingFactor, int depth, int distanceToIslands, int numberOfIslandsWithTreasure)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetExpectedNumberOfIslands()IIslandModelgetIslandModel()static IIslandModelgetIslandModel(int branchingFactor, int depth, int distanceToIslands)intgetMaximumIslandSizes()intgetMinimumIslandSizes()intgetNumberOfTreasureIslands()static ChaoticMeansTreasureModelgetTreasureModel(int branchingFactor, int depth, int distanceToIslands, int numberOfIslandsWithTreasure)booleanisPathATreasure(org.api4.java.datastructure.graph.ILabeledPath<ITransparentTreeNode,java.lang.Integer> path)-
Methods inherited from class ai.libs.jaicore.search.probleminputs.GraphSearchWithPathEvaluationsInput
getPathEvaluator, toString
-
Methods inherited from class ai.libs.jaicore.search.probleminputs.GraphSearchInput
getGoalTester, getGraphGenerator
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getIslandModel
public static IIslandModel getIslandModel(int branchingFactor, int depth, int distanceToIslands)
-
getTreasureModel
public static ChaoticMeansTreasureModel getTreasureModel(int branchingFactor, int depth, int distanceToIslands, int numberOfIslandsWithTreasure)
-
getIslandModel
public IIslandModel getIslandModel()
- Specified by:
getIslandModelin interfaceISyntheticTreasureIslandProblem
-
getExpectedNumberOfIslands
public int getExpectedNumberOfIslands()
- Specified by:
getExpectedNumberOfIslandsin interfaceISyntheticTreasureIslandProblem
-
getMaximumIslandSizes
public int getMaximumIslandSizes()
- Specified by:
getMaximumIslandSizesin interfaceISyntheticTreasureIslandProblem
-
getMinimumIslandSizes
public int getMinimumIslandSizes()
- Specified by:
getMinimumIslandSizesin interfaceISyntheticTreasureIslandProblem
-
getNumberOfTreasureIslands
public int getNumberOfTreasureIslands()
- Specified by:
getNumberOfTreasureIslandsin interfaceISyntheticTreasureIslandProblem
-
isPathATreasure
public boolean isPathATreasure(org.api4.java.datastructure.graph.ILabeledPath<ITransparentTreeNode,java.lang.Integer> path) throws org.api4.java.ai.graphsearch.problem.pathsearch.pathevaluation.PathEvaluationException, java.lang.InterruptedException
- Specified by:
isPathATreasurein interfaceISyntheticTreasureIslandProblem- Throws:
org.api4.java.ai.graphsearch.problem.pathsearch.pathevaluation.PathEvaluationExceptionjava.lang.InterruptedException
-
-