|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.cilib.games.agent.Agent
public abstract class Agent
This class represents a game playing agent.
| Field Summary | |
|---|---|
protected Fitness |
agentScore
|
protected Enum<?> |
agentToken
|
protected int |
playerID
|
| Constructor Summary | |
|---|---|
Agent()
|
|
Agent(Agent other)
|
|
| Method Summary | |
|---|---|
abstract DomainRegistry |
getAgentDomain()
Get the domain the agent's solution is represented by |
Fitness |
getAgentScore()
|
Enum<?> |
getAgentToken()
|
abstract Agent |
getClone()
Create a cloned copy of the current object and return it. |
int |
getPlayerID()
|
abstract void |
initializeAgent(Type agentData)
Initialize the agent with the contents of an entity. |
abstract void |
move(Game<GameState> game)
Alter the current game by making a decision. |
void |
setAgentScore(Fitness agentScore)
|
void |
setAgentToken(Enum<?> agentToken)
|
void |
setAgentToken(String agentToken)
Creates an enum based on the string, enum has to be inside the GameToken enum class, and cannot be another nested enum. |
void |
setPlayerID(int playerID)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int playerID
protected Fitness agentScore
protected Enum<?> agentToken
| Constructor Detail |
|---|
public Agent()
public Agent(Agent other)
| Method Detail |
|---|
public int getPlayerID()
public void setPlayerID(int playerID)
public abstract void initializeAgent(Type agentData)
agentData - the data to initialize the agent withpublic abstract Agent getClone()
getClone in interface CloneableObject.clone()public abstract void move(Game<GameState> game)
game - the game statepublic abstract DomainRegistry getAgentDomain()
public Fitness getAgentScore()
public void setAgentScore(Fitness agentScore)
public Enum<?> getAgentToken()
public void setAgentToken(Enum<?> agentToken)
public void setAgentToken(String agentToken)
agentToken - the string representation of the enum
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||