public class DominatedArea extends Object implements Serializable
DominationCalculator
.Modifier and Type | Field and Description |
---|---|
Collection<GraphSimulationAgentState> |
agents |
Collection<GraphNode> |
nodes |
int |
size |
String |
team |
int |
totalScore |
Constructor and Description |
---|
DominatedArea(String team,
Collection<GraphSimulationAgentState> agents,
Collection<GraphNode> nodes,
int size,
int score) |
Modifier and Type | Method and Description |
---|---|
int |
calculateProbedScore(Collection<String> probedNodes)
Returns the score of the area, summing the full weight of each node in the area that has been probed,
and 1 for every node in the area that hasn't been probed yet.
|
boolean |
cointainsAgent(GraphSimulationAgentState ag) |
public String team
public int size
public int totalScore
public Collection<GraphSimulationAgentState> agents
public Collection<GraphNode> nodes
public DominatedArea(String team, Collection<GraphSimulationAgentState> agents, Collection<GraphNode> nodes, int size, int score)
team
- agents
- nodes
- size
- score
- public int calculateProbedScore(Collection<String> probedNodes)
probedNodes
- The collection of nodes that the team has probed.public boolean cointainsAgent(GraphSimulationAgentState ag)
ag
- true
iff the agent ag
is on one of the nodes conforming the area.Copyright © 2013. All Rights Reserved.