public class SimpleMapAgent extends SimpleProblemSolvingAgent
Modifier and Type | Field and Description |
---|---|
protected Map |
map |
protected DynamicState |
state |
program
Constructor and Description |
---|
SimpleMapAgent(Map map,
EnvironmentViewNotifier notifier,
SearchForActions search) |
SimpleMapAgent(Map map,
EnvironmentViewNotifier notifier,
SearchForActions search,
int maxGoalsToFormulate) |
SimpleMapAgent(Map map,
EnvironmentViewNotifier notifier,
SearchForActions search,
java.lang.String[] goals) |
SimpleMapAgent(Map map,
SearchForActions search,
java.lang.String[] goals) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
formulateGoal() |
protected Problem |
formulateProblem(java.lang.Object goal) |
protected void |
notifyViewOfMetrics() |
protected java.util.List<Action> |
search(Problem problem) |
protected State |
updateState(Percept p) |
execute
isAlive, setAlive
protected Map map
protected DynamicState state
public SimpleMapAgent(Map map, EnvironmentViewNotifier notifier, SearchForActions search)
public SimpleMapAgent(Map map, EnvironmentViewNotifier notifier, SearchForActions search, int maxGoalsToFormulate)
public SimpleMapAgent(Map map, EnvironmentViewNotifier notifier, SearchForActions search, java.lang.String[] goals)
public SimpleMapAgent(Map map, SearchForActions search, java.lang.String[] goals)
protected State updateState(Percept p)
updateState
in class SimpleProblemSolvingAgent
protected java.lang.Object formulateGoal()
formulateGoal
in class SimpleProblemSolvingAgent
protected Problem formulateProblem(java.lang.Object goal)
formulateProblem
in class SimpleProblemSolvingAgent
protected java.util.List<Action> search(Problem problem)
search
in class SimpleProblemSolvingAgent
protected void notifyViewOfMetrics()
notifyViewOfMetrics
in class SimpleProblemSolvingAgent