org.vizzini.game
Class DefaultEvaluator

java.lang.Object
  extended by org.vizzini.game.AbstractEvaluator
      extended by org.vizzini.game.DefaultEvaluator
All Implemented Interfaces:
Serializable, IEvaluator
Direct Known Subclasses:
TokenLineEvaluator, WeightedEvaluator

public class DefaultEvaluator
extends AbstractEvaluator

Provides an evaluator which uses token values to arrive at an environment evaluation.

Since:
v0.1
Version:
v0.2
Author:
Jeffrey M. Thompson
See Also:
Serialized Form

Constructor Summary
DefaultEvaluator()
           
 
Method Summary
 void configure(Properties properties, int index)
          Configure this evaluator.
protected  int evaluateTokens(IEnvironment environment, IAgent agent)
          Evaluate the tokens in the given environment from the perspective of the given agent.
 
Methods inherited from class org.vizzini.game.AbstractEvaluator
evaluate, multiplier
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultEvaluator

public DefaultEvaluator()
Method Detail

configure

public void configure(Properties properties,
                      int index)
Configure this evaluator.

Specified by:
configure in interface IEvaluator
Overrides:
configure in class AbstractEvaluator
Since:
v0.1

evaluateTokens

protected int evaluateTokens(IEnvironment environment,
                             IAgent agent)
Evaluate the tokens in the given environment from the perspective of the given agent.

Specified by:
evaluateTokens in class AbstractEvaluator
Parameters:
environment - The environment to evaluate.
agent - The agent of interest.
Since:
v0.1


Copyright 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02