org.vizzini.game
Interface IComputerAgent

All Superinterfaces:
IAgent, Serializable
All Known Subinterfaces:
ISearchAgent
All Known Implementing Classes:
AbstractChessComputerAgent, AbstractComputerAgent, AbstractSimpleAgent, ComputerAgent, EvaluatedPlacementAgent, SearchAgent, SearchChessAgent, SimpleChessAgent, SimpleComputerAgent, SimplePlacementAgent

public interface IComputerAgent
extends IAgent

Defines methods required by computer agents in the game framework. A computer agent instance encapsulates the logic a computer agent uses to create actions. Examples of this logic are simple coding, a minimax algorithm, or neural network based.

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

Field Summary
 
Fields inherited from interface org.vizzini.game.IAgent
NAME_PROPERTY, TEAM_PROPERTY
 
Method Summary
 void addBusyListener(IBusyListener listener)
          Add the given listener.
 int evaluate(IEnvironment environment, IAdjudicator adjudicator)
          Evaluate the given environment for fitness from the perspective of this agent.
 IActionGenerator getActionGenerator()
          Return the action generator.
 IEvaluator getEvaluator()
          Return the evaluator.
 boolean isBusy()
          Return true if this is busy.
 void removeBusyListener(IBusyListener listener)
          Remove the given listener.
 
Methods inherited from interface org.vizzini.game.IAgent
addConcedeListener, addPropertyChangeListener, addScoreListener, addToScore, concede, configure, getAction, getName, getScore, getTeam, getTokenCollection, incrementScore, removeConcedeListener, removePropertyChangeListener, removeScoreListener, reset, setName, setScore, setTeam
 

Method Detail

getActionGenerator

IActionGenerator getActionGenerator()
Return the action generator.

Since:
v0.2

isBusy

boolean isBusy()
Return true if this is busy.

Since:
v0.1

getEvaluator

IEvaluator getEvaluator()
Return the evaluator.

Since:
v0.1

addBusyListener

void addBusyListener(IBusyListener listener)
Add the given listener.

Since:
v0.1

evaluate

int evaluate(IEnvironment environment,
             IAdjudicator adjudicator)
Evaluate the given environment for fitness from the perspective of this agent.

Parameters:
environment - Environment to evaluate.
adjudicator - Adjudicator.
Since:
v0.1

removeBusyListener

void removeBusyListener(IBusyListener listener)
Remove the given listener.

Since:
v0.1


Copyright 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02