massim.competition2011.scenario
Class DominationCalculator
java.lang.Object
massim.competition2011.scenario.DominationCalculator
public class DominationCalculator
- extends java.lang.Object
This class is in charge of calculating who is dominating nodes and zones. After calculation, it updates this
information in the nodes themselves and in the teams information.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DominationCalculator
public DominationCalculator()
calculate
public static void calculate(GraphSimulationWorldState world)
getEmptyNodesList
protected static java.util.ArrayList<GraphNode> getEmptyNodesList(java.util.Collection<GraphNode> nodes)
calculateBasicNodeDomination
protected static void calculateBasicNodeDomination(GraphNode node,
GraphSimulationWorldState world)
calculateDominatorFromNeighbours
protected static java.lang.String calculateDominatorFromNeighbours(GraphNode node,
GraphSimulationWorldState world)
isEmptyOfActiveAgents
protected static boolean isEmptyOfActiveAgents(GraphNode node)
Copyright © 2012. All Rights Reserved.