public class GraphSimulationAgentPerception extends Object implements Perception, XMLCodec.XMLEncodable
Modifier and Type | Field and Description |
---|---|
Set<GraphSimulationAgentState> |
agents
The set of agent that are currently visible to the agent
|
Set<GraphEdge> |
edges
The set of edges that are currently visible to the agent
|
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.
|
Set<GraphNode> |
nodes
The set of nodes that are currently visible to the agent
|
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
|
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 and Description |
---|
GraphSimulationAgentPerception()
Constructs for an empty perception.
|
Modifier and Type | Method and Description |
---|---|
void |
addSharedPercept(GraphSimulationAgentPerception sharedPer)
Adds all the perceived elements of
sharedPer to the perceived elements of this perception. |
void |
encodeToXML(Element target)
Encodes the contents of this perception object in the right XML format,
in concordance to the protocol description.
|
public GraphSimulationAgentState self
public TeamState team
public Set<GraphSimulationAgentState> agents
public Set<GraphNode> probedNodes
public Set<GraphEdge> surveyedEdges
public Set<GraphSimulationAgentState> inspectedAgents
public int step
public GraphSimulationAgentPerception()
public void encodeToXML(Element target)
encodeToXML
in interface XMLCodec.XMLEncodable
public void addSharedPercept(GraphSimulationAgentPerception sharedPer)
sharedPer
to the perceived elements of this perception.sharedPer
- Copyright © 2013. All Rights Reserved.