Class SearchProblemInputBuilder<N,A,I extends org.api4.java.ai.graphsearch.problem.IPathSearchInput<N,A>,B extends SearchProblemInputBuilder<N,A,I,B>>
- java.lang.Object
-
- ai.libs.jaicore.search.probleminputs.builders.SearchProblemInputBuilder<N,A,I,B>
-
- Direct Known Subclasses:
GraphSearchWithPathEvaluationsInputBuilder
,GraphSearchWithSubpathEvaluationsInputBuilder
public abstract class SearchProblemInputBuilder<N,A,I extends org.api4.java.ai.graphsearch.problem.IPathSearchInput<N,A>,B extends SearchProblemInputBuilder<N,A,I,B>> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SearchProblemInputBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract I
build()
B
fromProblem(org.api4.java.ai.graphsearch.problem.IPathSearchInput<N,A> problem)
org.api4.java.ai.graphsearch.problem.implicit.graphgenerator.IPathGoalTester<N,A>
getGoalTester()
org.api4.java.datastructure.graph.implicit.IGraphGenerator<N,A>
getGraphGenerator()
org.api4.java.datastructure.graph.ILabeledPath<N,A>
getPrefixPath()
protected abstract B
self()
B
withGoalTester(org.api4.java.ai.graphsearch.problem.implicit.graphgenerator.IPathGoalTester<N,A> goalTester)
B
withGraphGenerator(org.api4.java.datastructure.graph.implicit.IGraphGenerator<N,A> graphGenerator)
B
withOffsetRoot(java.util.List<java.lang.Integer> indicesOfSuccessorsFromCurrentRoot)
Replaces the current root by a new one based on the successor generatorB
withRoot(N root)
void
withSuccessorGenerator(org.api4.java.datastructure.graph.implicit.ISuccessorGenerator<N,A> successorGenerator)
-
-
-
Method Detail
-
withGraphGenerator
public B withGraphGenerator(org.api4.java.datastructure.graph.implicit.IGraphGenerator<N,A> graphGenerator)
-
getGraphGenerator
public org.api4.java.datastructure.graph.implicit.IGraphGenerator<N,A> getGraphGenerator()
-
fromProblem
public B fromProblem(org.api4.java.ai.graphsearch.problem.IPathSearchInput<N,A> problem)
-
withSuccessorGenerator
public void withSuccessorGenerator(org.api4.java.datastructure.graph.implicit.ISuccessorGenerator<N,A> successorGenerator)
-
withOffsetRoot
public B withOffsetRoot(java.util.List<java.lang.Integer> indicesOfSuccessorsFromCurrentRoot) throws java.lang.InterruptedException
Replaces the current root by a new one based on the successor generator- Throws:
java.lang.InterruptedException
-
withGoalTester
public B withGoalTester(org.api4.java.ai.graphsearch.problem.implicit.graphgenerator.IPathGoalTester<N,A> goalTester)
-
getGoalTester
public org.api4.java.ai.graphsearch.problem.implicit.graphgenerator.IPathGoalTester<N,A> getGoalTester()
-
build
public abstract I build()
-
self
protected abstract B self()
-
-