Exemplo n.º 1
0
 /**
  * Constructs a LRTA* agent with the specified search problem, percept to
  * state function, and heuristic function.
  *
  * @param problem
  *            an online search problem for this agent to solve.
  * @param ptsFunction
  *            a function which returns the problem state associated with a
  *            given Percept.
  * @param hf
  *            heuristic function <em>h(n)</em>, which estimates the cost of
  *            the cheapest path from the state at node <em>n</em> to a goal
  *            state.
  */
 public LRTAStarAgent(OnlineSearchProblem problem,
                      PerceptToStateFunction ptsFunction, HeuristicFunction hf)
 {
     setProblem(problem);
     setPerceptToStateFunction(ptsFunction);
     setHeuristicFunction(hf);
 }
Exemplo n.º 2
0
 /**
  * Sets the search problem for this agent to solve.
  *
  * @param problem
  *            the search problem for this agent to solve.
  */
 public void setProblem(OnlineSearchProblem problem)
 {
     this.problem = problem;
     init();
 }
Exemplo n.º 3
0
 /**
  * Constructs an online DFS agent with the specified search problem and
  * percept to state function.
  *
  * @param problem
  *            an online search problem for this agent to solve
  * @param ptsFunction
  *            a function which returns the problem state associated with a
  *            given Percept.
  */
 public OnlineDFSAgent(OnlineSearchProblem problem,
                       PerceptToStateFunction ptsFunction)
 {
     setProblem(problem);
     setPerceptToStateFunction(ptsFunction);
 }