net.sourceforge.cilib.games.agent.state
Class StateEvaluationAgent

java.lang.Object
  extended by net.sourceforge.cilib.games.agent.Agent
      extended by 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

Field Summary
 
Fields inherited from class net.sourceforge.cilib.games.agent.Agent
agentScore, agentToken, playerID
 
Constructor Summary
StateEvaluationAgent()
           
StateEvaluationAgent(StateEvaluationAgent other)
          Copy constructor
 
Method Summary
 DomainRegistry getAgentDomain()
          Get the domain the agent's solution is represented by
 StateEvaluationAgent getClone()
          Create a cloned copy of the current object and return it.
 StateTraversalStrategy getTraversalStrategy()
           
 void initializeAgent(Type agentData)
          Initialize the agent with the contents of an entity.
 void move(Game<GameState> game)
          Alter the current game by making a decision.
 void setTraversalStrategy(StateTraversalStrategy traversalStrategy)
           
 
Methods inherited from class net.sourceforge.cilib.games.agent.Agent
getAgentScore, getAgentToken, getPlayerID, setAgentScore, setAgentToken, setAgentToken, setPlayerID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StateEvaluationAgent

public StateEvaluationAgent()

StateEvaluationAgent

public StateEvaluationAgent(StateEvaluationAgent other)
Copy constructor

Parameters:
other -
Method Detail

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.