edu.columbia.human
Class PenteAgentProgram
java.lang.Object
edu.columbia.human.PenteAgentProgram
- All Implemented Interfaces:
- AgentProgram<PenteAction,PentePercept>, ActionChosenListener
public class PenteAgentProgram
- extends java.lang.Object
- implements AgentProgram<PenteAction,PentePercept>, ActionChosenListener
A human-controllable interface for playing Pente.
- Version:
- 0.1
User: aaron Date: Sep 26, 2006 Time: 2:54:35 PM
- Author:
- aaron@cs
Method Summary |
void |
actionChosen(ActionChosenEvent theEvent)
|
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. |
PenteAction |
nextAction(java.util.Set<PentePercept> 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 |
author
public static final java.lang.String author
- See Also:
- Constant Field Values
description
public static final java.lang.String description
- See Also:
- Constant Field Values
PenteAgentProgram
public PenteAgentProgram()
nextAction
public PenteAction nextAction(java.util.Set<PentePercept> thePercepts)
- The essence of agent AI: Given a set of percepts, chooses an action. given the current
- Specified by:
nextAction
in interface AgentProgram<PenteAction,PentePercept>
- Parameters:
thePercepts
- set of percepts from the environment
- Returns:
- the next action.
- See Also:
- "Russell & Norvig p.44 (2.4)"
actionChosen
public void actionChosen(ActionChosenEvent theEvent)
- Specified by:
actionChosen
in interface ActionChosenListener
getAuthor
public java.lang.String getAuthor()
- Should return the UNI of the author of the program.
- Specified by:
getAuthor
in interface AgentProgram<PenteAction,PentePercept>
- 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<PenteAction,PentePercept>
- Returns:
- short description of program