massim.competition2011
Class GraphSimulationAgentState

java.lang.Object
  extended by massim.competition2011.GraphSimulationAgentState
All Implemented Interfaces:
java.io.Serializable, AgentState

public class GraphSimulationAgentState
extends java.lang.Object
implements AgentState

This class holds the current state of an agent in the 2011 Mars scenario simulation.

See Also:
Serialized Form

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

team

public java.lang.String team
The name of the agent's team


name

public java.lang.String name
The name of the agent


roleName

public java.lang.String roleName
The name of the agent's role


maxEnergy

public int maxEnergy
The agent's maximum energy (that can be increased via the buy action).


maxEnergyDisabled

public int maxEnergyDisabled
The agent's maximum energy if the agent is disabled (when health == 0).


energy

public int energy
The agent's current energy.


maxHealth

public int maxHealth
The agent's maximum health (that can be increased via the buy action).


health

public int health
The agent's current health.


strength

public int strength
The agent's strength (that can be increased via the buy action).


visRange

public int visRange
The agent's visibility range (that can be increased via the buy action).


node

public GraphNode node
The current node of this agent (that is, the agent's position within the map).


action

public java.lang.String action
Holds the name of the action that the agents wants to execute in the current step.


param

public java.lang.String param
Holds the parameter String for the action that the agents wants to execute in the current step.


lastAction

public java.lang.String lastAction
Holds the name of the last executed action, to be used in next perception as well as in monitoring.


lastActionResult

public java.lang.String lastActionResult
Holds the result of the last executed action, to be used in next perception as well as in monitoring.


lastActionParam

public java.lang.String lastActionParam
Holds the parameter String of the last executed action, to be used in next perception as well as in monitoring.


attacked

public boolean attacked
A flag to indicate that the agent was attacked in the current step. The need for this flag is because some actions are specified to fail when the agent is under attack.

Constructor Detail

GraphSimulationAgentState

public GraphSimulationAgentState()
Method Detail

setNode

public void setNode(GraphNode node)
Setter for the current node of this agent (that is, the agent's position within the map).

Parameters:
node -

setAction

public void setAction(java.lang.String action)
Setter for the name of the action that this agent wants to execute in this simulation step.

Parameters:
action -


Copyright © 2012. All Rights Reserved.