|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.vizzini.game.AbstractEvaluator
public abstract class AbstractEvaluator
Provides base functionality for evaluators in the game framework. An evaluator instance encapsulates the evaluation algorithm used to determine the fitness of a given environment. The evaluator is used by computer agents to help select their next action.
| Constructor Summary | |
|---|---|
AbstractEvaluator()
|
|
| Method Summary | |
|---|---|
void |
configure(Properties properties,
int index)
Configure this evaluator. |
int |
evaluate(IEnvironment environment,
IAdjudicator adjudicator,
IAgent agent)
Return an evaluation of the given environment from the perspective of the given agent. |
protected abstract int |
evaluateTokens(IEnvironment environment,
IAgent agent)
Evaluate the tokens in the given environment from the perspective of the given agent. |
protected int |
multiplier(IToken token,
IAgent agent)
Return the multiplier for a token from the given agent's perspective. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractEvaluator()
| Method Detail |
|---|
public void configure(Properties properties,
int index)
throws InstantiationException,
IllegalAccessException
configure in interface IEvaluatorInstantiationException
IllegalAccessException
public int evaluate(IEnvironment environment,
IAdjudicator adjudicator,
IAgent agent)
evaluate in interface IEvaluatorenvironment - The environment to evaluate.adjudicator - Adjudicator.agent - The agent of interest.
protected abstract int evaluateTokens(IEnvironment environment,
IAgent agent)
environment - The environment to evaluate.agent - The agent of interest.
protected int multiplier(IToken token,
IAgent agent)
token - The token.agent - The agent.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |