|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GamePlayingAgentProgram<K extends AgentAction,P extends AgentPercept,S extends GameState>
Interface for AgentPrograms that play games. Such an agent should begin by posing a well-formed GameProblem to itself. Thereafter, it should:
Method Summary | |
---|---|
GameProblem<K,S> |
poseGameProblem()
In this method, the agent poses the game problem to itself. |
S |
updateStateFromPercepts(S previousState,
java.util.Set<P> newPercepts)
Given a set of percepts and a previous state, returns a new current state. |
Methods inherited from interface edu.columbia.cs.coms4701.agent.AgentProgram |
---|
getAuthor, getDescription, nextAction |
Method Detail |
---|
GameProblem<K,S> poseGameProblem()
This is the initial step for any game-playing agent, done if the problem has not already been posed.
S updateStateFromPercepts(S previousState, java.util.Set<P> newPercepts)
previousState,
- the last known statenewPercepts,
- a set of new percepts
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |