|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.cilib.games.agent.Agent net.sourceforge.cilib.games.agent.RandomAgent
public class RandomAgent
This is an agent that chooses a random state as its decision, it will only work on Game's that impliment StateGame
Field Summary |
---|
Fields inherited from class net.sourceforge.cilib.games.agent.Agent |
---|
agentScore, agentToken, playerID |
Constructor Summary | |
---|---|
RandomAgent()
|
|
RandomAgent(Agent other)
Copy constructor |
Method Summary | |
---|---|
DomainRegistry |
getAgentDomain()
Get the domain the agent's solution is represented by |
Agent |
getClone()
Create a cloned copy of the current object and return it. |
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. |
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 |
---|
public RandomAgent()
public RandomAgent(Agent other)
other
- Method Detail |
---|
public DomainRegistry getAgentDomain()
getAgentDomain
in class Agent
public Agent getClone()
getClone
in interface Cloneable
getClone
in class Agent
Object.clone()
public void initializeAgent(Type agentData)
initializeAgent
in class Agent
agentData
- the data to initialize the agent withpublic void move(Game<GameState> game)
move
in class Agent
game
- the game state
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |