/** * 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); }
public LRTAStarAgent(OnlineSearchProblem problem, PerceptToStateFunction ptsFunction, HeuristicFunction hf) { setProblem(problem); setPerceptToStateFunction(ptsFunction); setHeuristicFunction(hf); }
public static PerceptToStateFunction getPerceptToStateFunction() { if (null == _perceptToStateFunction) { _perceptToStateFunction = new MapPerceptToStateFunction(); } return _perceptToStateFunction; }
public static PerceptToStateFunction getPerceptToStateFunction() { if (null == perceptToStateFunction) { perceptToStateFunction = new MapPerceptToStateFunction(); } return(perceptToStateFunction); }
/** * 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); }
/** * Sets the percept to state functino of this agent. * * @param ptsFunction * a function which returns the problem state associated with a * given Percept. */ public void setPerceptToStateFunction(PerceptToStateFunction ptsFunction) { this.ptsFunction = ptsFunction; }
public void setPerceptToStateFunction(PerceptToStateFunction ptsFunction) { this.ptsFunction = ptsFunction; }
public OnlineDFSAgent(OnlineSearchProblem problem, PerceptToStateFunction ptsFunction) { setProblem(problem); setPerceptToStateFunction(ptsFunction); }