|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OnlineAgentProgram<K extends AgentAction,P extends AgentPercept,S extends AgentState>
Like a SimpleProblemSolvingAgent, but adapted for the information available in an online environment.
Unlike a SimpleProblemSolvingAgent, an OnlineAgentProgram does not formulate a complete solution by searching from the initial state all the way to a goal. Instead, it must interleave planning and action.
Unlike
Method Summary | |
---|---|
java.util.Set<S> |
formulateGoal(S initialState)
Given an initial state (and knowledge of the environment), formulates a set of goal states. |
OnlineSearchProblem<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.Set<S> |
getGoal()
Returns the set of final states in which the goal condition is satisfied. |
OnlineSearchProblem<K,S> |
getProblem()
Returns the problem formulated by the agent. |
S |
getState()
Gets the current world state (as known to the agent) |
S |
updateState(S previousState,
java.util.Set<P> thePercepts)
Updates the current state given a set of percepts. |
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
-
OnlineSearchProblem<K,S> formulateProblem(S initialState, java.util.Set<S> goalStates)
initialState
- goalStates
-
OnlineSearchProblem<K,S> getProblem()
java.util.Set<S> getGoal()
S getState()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |