|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmassim.competition2011.GraphSimulationAgentState
public class GraphSimulationAgentState
This class holds the current state of an agent in the 2011 Mars scenario simulation.
Field Summary | |
---|---|
java.lang.String |
action
Holds the name of the action that the agents wants to execute in the current step. |
boolean |
attacked
A flag to indicate that the agent was attacked in the current step. |
int |
energy
The agent's current energy. |
int |
health
The agent's current health. |
java.lang.String |
lastAction
Holds the name of the last executed action, to be used in next perception as well as in monitoring. |
java.lang.String |
lastActionParam
Holds the parameter String of the last executed action, to be used in next perception as well as in monitoring. |
java.lang.String |
lastActionResult
Holds the result of the last executed action, to be used in next perception as well as in monitoring. |
int |
maxEnergy
The agent's maximum energy (that can be increased via the buy action). |
int |
maxEnergyDisabled
The agent's maximum energy if the agent is disabled (when health == 0 ). |
int |
maxHealth
The agent's maximum health (that can be increased via the buy action). |
java.lang.String |
name
The name of the agent |
GraphNode |
node
The current node of this agent (that is, the agent's position within the map). |
java.lang.String |
param
Holds the parameter String for the action that the agents wants to execute in the current step. |
java.lang.String |
roleName
The name of the agent's role |
int |
strength
The agent's strength (that can be increased via the buy action). |
java.lang.String |
team
The name of the agent's team |
int |
visRange
The agent's visibility range (that can be increased via the buy action). |
Constructor Summary | |
---|---|
GraphSimulationAgentState()
|
Method Summary | |
---|---|
void |
setAction(java.lang.String action)
Setter for the name of the action that this agent wants to execute in this simulation step. |
void |
setNode(GraphNode node)
Setter for the current node of this agent (that is, the agent's position within the map). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.String team
public java.lang.String name
public java.lang.String roleName
public int maxEnergy
buy
action).
public int maxEnergyDisabled
health == 0
).
public int energy
public int maxHealth
buy
action).
public int health
public int strength
buy
action).
public int visRange
buy
action).
public GraphNode node
public java.lang.String action
public java.lang.String param
public java.lang.String lastAction
public java.lang.String lastActionResult
public java.lang.String lastActionParam
public boolean attacked
Constructor Detail |
---|
public GraphSimulationAgentState()
Method Detail |
---|
public void setNode(GraphNode node)
node
- public void setAction(java.lang.String action)
action
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |