org.vizzini.game
Interface ISearchAgent

All Superinterfaces:
IAgent, IComputerAgent, Serializable
All Known Implementing Classes:
SearchAgent, SearchChessAgent

public interface ISearchAgent
extends IComputerAgent

Defines methods required by computer agents which uses an AI search algorithm to determine the best action.

Since:
v0.2
Version:
v0.3
Author:
Jeffrey M. Thompson

Field Summary
 
Fields inherited from interface org.vizzini.game.IAgent
NAME_PROPERTY, TEAM_PROPERTY
 
Method Summary
 void configure(Properties properties, int index)
          Configure this agent.
 int getDepth()
          Return the search depth.
 int getNodesVisitedCount()
          Return the nodes visited count.
 void setDepth(int depth)
          Set the search depth.
 
Methods inherited from interface org.vizzini.game.IComputerAgent
addBusyListener, evaluate, getActionGenerator, getEvaluator, isBusy, removeBusyListener
 
Methods inherited from interface org.vizzini.game.IAgent
addConcedeListener, addPropertyChangeListener, addScoreListener, addToScore, concede, getAction, getName, getScore, getTeam, getTokenCollection, incrementScore, removeConcedeListener, removePropertyChangeListener, removeScoreListener, reset, setName, setScore, setTeam
 

Method Detail

configure

void configure(Properties properties,
               int index)
               throws InstantiationException,
                      IllegalAccessException
Configure this agent.

Specified by:
configure in interface IAgent
Throws:
InstantiationException
IllegalAccessException
Since:
v0.2

getDepth

int getDepth()
Return the search depth.

Since:
v0.2

getNodesVisitedCount

int getNodesVisitedCount()
Return the nodes visited count.

Since:
v0.3

setDepth

void setDepth(int depth)
Set the search depth.

Since:
v0.2


Copyright © 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02