net.sourceforge.cilib.games.agent.state
Class StateEvaluationAgent
java.lang.Object
net.sourceforge.cilib.games.agent.Agent
net.sourceforge.cilib.games.agent.state.StateEvaluationAgent
- All Implemented Interfaces:
- Serializable, Cloneable
public class StateEvaluationAgent
- extends Agent
- Author:
- leo
This class represents all agents that function as state evaluators.
A state evaluator agent makes a decision by ranking each possible game state and choosing the one with the highest rank
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StateEvaluationAgent
public StateEvaluationAgent()
StateEvaluationAgent
public StateEvaluationAgent(StateEvaluationAgent other)
- Copy constructor
- Parameters:
other
-
getClone
public StateEvaluationAgent getClone()
- Create a cloned copy of the current object and return it. In general
the created copy will be a deep copy of the provided instance. As
a result this operation an be quite expensive if used incorrectly.
- Specified by:
getClone
in interface Cloneable
- Specified by:
getClone
in class Agent
- Returns:
- An exact clone of the current object instance.
- See Also:
Object.clone()
move
public void move(Game<GameState> game)
- Alter the current game by making a decision.
- Specified by:
move
in class Agent
- Parameters:
game
- the game state
getTraversalStrategy
public StateTraversalStrategy getTraversalStrategy()
setTraversalStrategy
public void setTraversalStrategy(StateTraversalStrategy traversalStrategy)
getAgentDomain
public DomainRegistry getAgentDomain()
- Get the domain the agent's solution is represented by
- Specified by:
getAgentDomain
in class Agent
- Returns:
- the relevant DomainRegistry
initializeAgent
public void initializeAgent(Type agentData)
- Initialize the agent with the contents of an entity. This data should represent what the
- Specified by:
initializeAgent
in class Agent
- Parameters:
agentData
- the data to initialize the agent with
Copyright © 2009 CIRG. All Rights Reserved.