Class SearchProblemInputBuilder<N,​A,​I extends org.api4.java.ai.graphsearch.problem.IPathSearchInput<N,​A>,​B extends SearchProblemInputBuilder<N,​A,​I,​B>>

    • 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 generator
      B withRoot​(N root)  
      void withSuccessorGenerator​(org.api4.java.datastructure.graph.implicit.ISuccessorGenerator<N,​A> successorGenerator)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SearchProblemInputBuilder

        public SearchProblemInputBuilder()
    • 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)
      • withRoot

        public B withRoot​(N root)
      • 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
      • getPrefixPath

        public org.api4.java.datastructure.graph.ILabeledPath<N,​A> getPrefixPath()
      • 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()