Class DegeneratedGraphSearchWithPathEvaluationsProblem
- 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.degenerated.DegeneratedGraphSearchWithPathEvaluationsProblem
-
- 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 DegeneratedGraphSearchWithPathEvaluationsProblem extends GraphSearchWithPathEvaluationsInput<ITransparentTreeNode,java.lang.Integer,java.lang.Double> implements ISyntheticTreasureIslandProblem
-
-
Constructor Summary
Constructors Constructor Description DegeneratedGraphSearchWithPathEvaluationsProblem(java.util.Random random, int deadEndsPerGeneration, int branchingFactor, int depth, int maxIslandSize, int numberOfIslandsWithTreasure, IIslandModel islandModel, ITreasureModel treasureModel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetExpectedNumberOfIslands()DegeneratedGraphGeneratorGenerator.DegeneratedGraphGeneratorgetGraphGenerator()IIslandModelgetIslandModel()intgetMaximumIslandSizes()intgetMinimumIslandSizes()intgetNumberOfTreasureIslands()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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Constructor Detail
-
DegeneratedGraphSearchWithPathEvaluationsProblem
public DegeneratedGraphSearchWithPathEvaluationsProblem(java.util.Random random, int deadEndsPerGeneration, int branchingFactor, int depth, int maxIslandSize, int numberOfIslandsWithTreasure, IIslandModel islandModel, ITreasureModel treasureModel)
-
-
Method Detail
-
getGraphGenerator
public DegeneratedGraphGeneratorGenerator.DegeneratedGraphGenerator getGraphGenerator()
- Specified by:
getGraphGeneratorin interfaceorg.api4.java.ai.graphsearch.problem.IPathSearchInput<ITransparentTreeNode,java.lang.Integer>- Overrides:
getGraphGeneratorin classGraphSearchInput<ITransparentTreeNode,java.lang.Integer>
-
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
-
-