org.vizzini.game.search
Interface ISearch

All Known Implementing Classes:
AbstractSearch, AlphaBetaSearch, NegamaxSearch

public interface ISearch

Defines methods required by search algorithms.

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

Method Summary
 void configure(Properties properties, int index)
          Configure this search.
 int getNodesVisitedCount()
          Return the nodes visited count.
 void reset()
          Reset this search.
 IAction search(IAgent agent, IAgent opponent, IEnvironment environment, IAdjudicator adjudicator, IEvaluator evaluator, IActionGenerator actionGenerator, int maxDepth, int depth)
          Perform a search using the given parameters.
 

Method Detail

configure

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

Parameters:
properties - Properties.
index - Index of the agent to which this search belongs.
Throws:
InstantiationException - if the specified ITranspositionKeyCreator cannot be instantiated.
IllegalAccessException - if the specified ITranspositionKeyCreator class or its no-arg constructor cannot be accessed.
Since:
v0.3

getNodesVisitedCount

int getNodesVisitedCount()
Return the nodes visited count.

Since:
v0.2

reset

void reset()
Reset this search.

Since:
v0.2

search

IAction search(IAgent agent,
               IAgent opponent,
               IEnvironment environment,
               IAdjudicator adjudicator,
               IEvaluator evaluator,
               IActionGenerator actionGenerator,
               int maxDepth,
               int depth)
Perform a search using the given parameters.

Parameters:
agent - Agent.
opponent - Opposing agent.
environment - Environment.
adjudicator - Adjudicator.
evaluator - Evaluator.
actionGenerator - Action generator.
maxDepth - Maximum depth of search.
depth - Current depth of search.
Since:
v0.2


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