org.vizzini.game.boardgame
Class GPFunctionEvaluator
java.lang.Object
org.vizzini.game.AbstractEvaluator
org.vizzini.game.boardgame.GPFunctionEvaluator
- All Implemented Interfaces:
- Serializable, IEvaluator
public class GPFunctionEvaluator
- extends AbstractEvaluator
Provides an evaluator which uses a genetic programming function.
- Since:
- v0.3
- Version:
- v0.3
- Author:
- Jeffrey M. Thompson
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GPFunctionEvaluator
public GPFunctionEvaluator()
configure
public void configure(Properties properties,
int index)
throws InstantiationException,
IllegalAccessException
- Configure this evaluator.
- Specified by:
configure
in interface IEvaluator
- Overrides:
configure
in class AbstractEvaluator
- Throws:
InstantiationException
IllegalAccessException
- Since:
- v0.3
getFunction
public IFunction getFunction()
- Returns:
- Return function.
- Since:
- v0.3
setFunction
public void setFunction(IFunction function)
- Parameters:
function
- the function to set- Since:
- v0.3
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.3
Copyright © 2007 Vizzini.org. All Rights Reserved.
|
2007.12.25.03.00.02 |