public class NondeterministicVacuumAgent extends AbstractAgent
program
Constructor and Description |
---|
NondeterministicVacuumAgent(PerceptToStateFunction ptsFunction) |
Modifier and Type | Method and Description |
---|---|
Action |
execute(Percept percept)
Execute an action from the contingency plan
|
Plan |
getContingencyPlan()
Return the agent contingency plan
|
PerceptToStateFunction |
getPerceptToStateFunction()
Returns the percept to state function of this agent.
|
NondeterministicProblem |
getProblem()
Returns the search problem for this agent.
|
void |
setPerceptToStateFunction(PerceptToStateFunction ptsFunction)
Sets the percept to state functino of this agent.
|
void |
setProblem(NondeterministicProblem problem)
Sets the search problem for this agent to solve.
|
isAlive, setAlive
public NondeterministicVacuumAgent(PerceptToStateFunction ptsFunction)
public NondeterministicProblem getProblem()
public void setProblem(NondeterministicProblem problem)
problem
- the search problem for this agent to solve.public PerceptToStateFunction getPerceptToStateFunction()
public void setPerceptToStateFunction(PerceptToStateFunction ptsFunction)
ptsFunction
- a function which returns the problem state associated with a
given Percept.public Plan getContingencyPlan()