|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmassim.competition2012.GraphSimulationAgentPerception
public class GraphSimulationAgentPerception
This class holds the information that will be sent to an agent as a normal perception.
Field Summary | |
---|---|
java.util.Set<GraphSimulationAgentState> |
agents
The set of agent that are currently visible to the agent |
java.util.Set<GraphEdge> |
edges
The set of edges that are currently visible to the agent |
java.util.Set<GraphSimulationAgentState> |
inspectedAgents
The set of agents that where inspected in the previous step, for which the agent owner of this perception should get extended information. |
java.util.Set<GraphNode> |
nodes
The set of nodes that are currently visible to the agent |
java.util.Set<GraphNode> |
probedNodes
The set of nodes that where probed in the previous step, for which the agent owner of this perception should get extended information. |
GraphSimulationAgentState |
self
The state of the agent to which this perception belongs. |
int |
step
The current simulation step |
java.util.Set<GraphEdge> |
surveyedEdges
The set of edges that where surveyed in the previous step, for which the agent owner of this perception should get extended information. |
TeamState |
team
The state of the team of the agent owner of this perception. |
Constructor Summary | |
---|---|
GraphSimulationAgentPerception()
Constructs for an empty perception. |
Method Summary | |
---|---|
void |
addSharedPercept(GraphSimulationAgentPerception sharedPer)
Adds all the perceived elements of sharedPer to the perceived elements of this perception. |
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 |
---|
public GraphSimulationAgentState self
public TeamState team
public java.util.Set<GraphNode> nodes
public java.util.Set<GraphEdge> edges
public java.util.Set<GraphSimulationAgentState> agents
public java.util.Set<GraphNode> probedNodes
public java.util.Set<GraphEdge> surveyedEdges
public java.util.Set<GraphSimulationAgentState> inspectedAgents
public int step
Constructor Detail |
---|
public GraphSimulationAgentPerception()
Method Detail |
---|
public void encodeToXML(org.w3c.dom.Element target)
encodeToXML
in interface XMLCodec.XMLEncodable
public void addSharedPercept(GraphSimulationAgentPerception sharedPer)
sharedPer
to the perceived elements of this perception.
sharedPer
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |