|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.columbia.awh2101.RoombaAgentProgram
public class RoombaAgentProgram
An example agent program that implements a random walk technique.
Hopefully, your agent program will perform much better than this one!
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 |
---|
public RoombaAgentProgram()
Method Detail |
---|
public RobotAction nextAction(java.util.Set<RobotPercept> thePercepts)
This Random Walk agent program doesn't examine its percepts at all.
nextAction
in interface AgentProgram<RobotAction,RobotPercept>
thePercepts
- set of percepts from the environment
public java.lang.String getAuthor()
getAuthor
in interface AgentProgram<RobotAction,RobotPercept>
public java.lang.String getDescription()
getDescription
in interface AgentProgram<RobotAction,RobotPercept>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |