edu.columbia.awh2101
Class RoombaAgentProgram

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

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

An example agent program that implements a random walk technique.

Hopefully, your agent program will perform much better than this one!

Version:
0.1

User: aaron Date: Aug 28, 2006 Time: 5:18:27 PM

Author:
aaron@cs

Constructor Summary
RoombaAgentProgram()
           
 
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 agentprograms 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

RoombaAgentProgram

public RoombaAgentProgram()
Method Detail

nextAction

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

This Random Walk agent program doesn't examine its percepts at all.

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 agentprograms 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