|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SimpleProblemSolvingAgentProgram<K extends AgentAction,P extends AgentPercept,S extends AgentState>
A simple problem-solving agent.
This agent program first formulates a goal and a problem, searches for a sequence of actions that would solve the problem, and then executes the actions one at a time.
Note that this agent program ignores its percepts.
Method Summary | |
---|---|
java.util.Set<S> |
formulateGoal(S initialState)
Given an initial state (and knowledge of the environment), formulates a set of goal states. |
SearchProblem<K,S> |
formulateProblem(S initialState,
java.util.Set<S> goalStates)
Formulates a formal problem description given an initial state and a set of goals. |
java.util.List<K> |
getActionSequence()
Gets the sequence of actions to perform. |
java.util.Set<S> |
getGoal()
Returns the set of final states in which the goal condition is satisfied. |
SearchProblem<K,S> |
getProblem()
Returns the problem formulated by the agent. |
S |
getState()
Gets the current world state (as known to the agent) |
java.util.List<K> |
search(SearchProblem<K,S> theSearchProblem)
Given a formal problem description, finds a sequence of actions that will reach a goal state. |
S |
updateState(S previousState,
java.util.Set<P> thePercepts)
Updates the current state given a percept. |
Methods inherited from interface edu.columbia.cs.coms4701.agent.AgentProgram |
---|
getAuthor, getDescription, nextAction |
Method Detail |
---|
S updateState(S previousState, java.util.Set<P> thePercepts)
previousState
- thePercepts
-
java.util.Set<S> formulateGoal(S initialState)
initialState
-
SearchProblem<K,S> formulateProblem(S initialState, java.util.Set<S> goalStates)
initialState
- goalStates
-
java.util.List<K> search(SearchProblem<K,S> theSearchProblem)
This method will often simply use some generic SearchAlgorithm.
theSearchProblem
-
SearchProblem<K,S> getProblem()
java.util.Set<S> getGoal()
S getState()
java.util.List<K> getActionSequence()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |