edu.columbia.awh2101
Class OnlineDFSAgentProgram

java.lang.Object
  extended by edu.columbia.awh2101.OnlineDFSAgentProgram
All Implemented Interfaces:
AgentProgram<RobotAction,RobotPercept>

public class OnlineDFSAgentProgram
extends java.lang.Object
implements AgentProgram<RobotAction,RobotPercept>

An implementation of Online-DFS-Agent for the Roomba environment.

Version:
0.1

User: aaron Date: Sep 1, 2006 Time: 2:46:07 PM

Author:
aaron@cs
See Also:
"Russell & Norvig p.126"

Constructor Summary
OnlineDFSAgentProgram()
           
 
Method Summary
 java.lang.String getAuthor()
          Should return the UNI of the author of the program.
 java.lang.String getDescription()
          Should return a short description of the program, used to distinguish different agent programs by the same author.
 RobotAction nextAction(java.util.Set<RobotPercept> thePercepts)
          The essence of agent AI: Given a set of percepts, chooses an action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OnlineDFSAgentProgram

public OnlineDFSAgentProgram()
Method Detail

nextAction

public RobotAction nextAction(java.util.Set<RobotPercept> thePercepts)
The essence of agent AI: Given a set of percepts, chooses an action.

Specified by:
nextAction in interface AgentProgram<RobotAction,RobotPercept>
Parameters:
thePercepts - set of percepts from the environment
Returns:
the next action.
See Also:
"Russell & Norvig p.44 (2.4)"

getAuthor

public java.lang.String getAuthor()
Should return the UNI of the author of the program.

Specified by:
getAuthor in interface AgentProgram<RobotAction,RobotPercept>
Returns:
a UNI, e.g. "awh2101"

getDescription

public java.lang.String getDescription()
Should return a short description of the program, used to distinguish different agent programs by the same author. e.g. "SMA* search with a crappy heuristic function"

Specified by:
getDescription in interface AgentProgram<RobotAction,RobotPercept>
Returns:
short description of program