massim.competition2011
Class GraphSimulationAgentInitialPerception

java.lang.Object
  extended by massim.competition2011.GraphSimulationAgentInitialPerception
All Implemented Interfaces:
java.io.Serializable, InitialStickyPerception, Perception, XMLCodec.XMLEncodable

public class GraphSimulationAgentInitialPerception
extends java.lang.Object
implements InitialStickyPerception, XMLCodec.XMLEncodable

This class holds the information that is sent to the agent as initial perception when simulation begins.

See Also:
Serialized Form

Field Summary
 int edges
          The number of edges that the map graph has.
 java.lang.String role
          The agent's role
 GraphSimulationAgentState self
          The state of the agent to which this perception belongs.
 int steps
          The number of steps that this simulation will run.
 java.util.Collection<GraphSimulationAgentState> teamMembers
          A collection of agent states, holding the states of all the team Members in the same team of the owner of this perception.
 int vertices
          The number of vertices that the map graph has.
 
Constructor Summary
GraphSimulationAgentInitialPerception()
           
 
Method Summary
 void encodeToXML(org.w3c.dom.Element target)
          Encodes the contents of this perception object in the right XML format, in concordance to the protocol description,
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

self

public GraphSimulationAgentState self
The state of the agent to which this perception belongs.


steps

public int steps
The number of steps that this simulation will run.


vertices

public int vertices
The number of vertices that the map graph has.


edges

public int edges
The number of edges that the map graph has.


role

public java.lang.String role
The agent's role


teamMembers

public java.util.Collection<GraphSimulationAgentState> teamMembers
A collection of agent states, holding the states of all the team Members in the same team of the owner of this perception.

Constructor Detail

GraphSimulationAgentInitialPerception

public GraphSimulationAgentInitialPerception()
Method Detail

encodeToXML

public void encodeToXML(org.w3c.dom.Element target)
Encodes the contents of this perception object in the right XML format, in concordance to the protocol description,

Specified by:
encodeToXML in interface XMLCodec.XMLEncodable


Copyright © 2011. All Rights Reserved.