|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmas.agentsHempelsSofa.algorithms.ZoneAlgorithms
public class ZoneAlgorithms
An implementation of some algorithms that are needed to calculate our zones.
Constructor Summary | |
---|---|
ZoneAlgorithms()
|
Method Summary | |
---|---|
static java.util.LinkedList<Vertex> |
testIsolated(Graph graph,
Zone zone,
java.lang.String[] dominatingTeams,
Vertex start)
tests whether vertices in the zone is isolated by a frontier. this fails, if there are no enemy vertices known yet. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ZoneAlgorithms()
Method Detail |
---|
public static java.util.LinkedList<Vertex> testIsolated(Graph graph, Zone zone, java.lang.String[] dominatingTeams, Vertex start)
graph
- the graph the zone is created on.zone
- the zone which shall be checked.dominatingTeams
- an array of dominating teams which follows the
mapping graph.vertices(i) -> dominatingTeams(i).start
- the vertex the vertices shall be expanded from.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |