public class SearchAgent extends AbstractAgent
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<Action> |
actionList |
program| Constructor and Description |
|---|
SearchAgent(Problem p,
SearchForActions search) |
| Modifier and Type | Method and Description |
|---|---|
Action |
execute(Percept p)
Call the Agent's program, which maps any given percept sequences to an
action.
|
java.util.List<Action> |
getActions() |
java.util.Properties |
getInstrumentation() |
boolean |
isDone() |
isAlive, setAliveprotected java.util.List<Action> actionList
public SearchAgent(Problem p, SearchForActions search) throws java.lang.Exception
java.lang.Exceptionpublic Action execute(Percept p)
Agentexecute in interface Agentexecute in class AbstractAgentp - The current percept of a sequence perceived by the Agent.public boolean isDone()
public java.util.List<Action> getActions()
public java.util.Properties getInstrumentation()