massim.competition2011.scenario
Class DominationCalculator

java.lang.Object
  extended by 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.


Constructor Summary
DominationCalculator()
           
 
Method Summary
static void calculate(GraphSimulationWorldState world)
           
protected static void calculateBasicNodeDomination(GraphNode node, GraphSimulationWorldState world)
           
protected static java.lang.String calculateDominatorFromNeighbours(GraphNode node, GraphSimulationWorldState world)
           
protected static java.util.ArrayList<GraphNode> getEmptyNodesList(java.util.Collection<GraphNode> nodes)
           
protected static boolean isEmptyOfActiveAgents(GraphNode node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DominationCalculator

public DominationCalculator()
Method Detail

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 © 2011. All Rights Reserved.