edu.columbia.cs.coms4701.search.online.agentprograms
Interface OnlineAgentProgram<K extends AgentAction,P extends AgentPercept,S extends AgentState>

All Superinterfaces:
AgentProgram<K,P>
All Known Subinterfaces:
LRTAStarAgentProgram<K,P,S>, OnlineDFSAgentProgram<K,P,S>, OnlineHeuristicAgentProgram<K,P,S>
All Known Implementing Classes:
AWHOnlineDFSAgentProgram

public interface OnlineAgentProgram<K extends AgentAction,P extends AgentPercept,S extends AgentState>
extends AgentProgram<K,P>

Like a SimpleProblemSolvingAgent, but adapted for the information available in an online environment.

Version:
0.1

User: aaron Date: Sep 12, 2006 Time: 12:30:16 AM

Author:
aaron@cs
See Also:
"Russell & Norvig pp125-128"

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

updateState

S updateState(S previousState,
              java.util.Set<P> thePercepts)
Updates the current state given a set of percepts.

Parameters:
previousState -
thePercepts -
Returns:
the new state

formulateGoal

java.util.Set<S> formulateGoal(S initialState)
Given an initial state (and knowledge of the environment), formulates a set of goal states.

Parameters:
initialState -
Returns:
set of states reachable from the initial state that meet the goal condition

formulateProblem

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.

Parameters:
initialState -
goalStates -
Returns:
a problem description

getProblem

OnlineSearchProblem<K,S> getProblem()
Returns the problem formulated by the agent.

Returns:
a problem description.

getGoal

java.util.Set<S> getGoal()
Returns the set of final states in which the goal condition is satisfied.

Returns:
goal states

getState

S getState()
Gets the current world state (as known to the agent)

Returns:
current world state