massim.competition2011.scenario
Class GraphNode

java.lang.Object
  extended by massim.competition2011.scenario.GraphNode
All Implemented Interfaces:
java.io.Serializable

public class GraphNode
extends java.lang.Object
implements java.io.Serializable

This class represents a node in the graph that forms the map.

See Also:
Serialized Form

Field Summary
 java.util.Vector<GraphSimulationAgentState> agents
           
 int gridX
           
 int gridY
           
 java.lang.String name
           
static java.lang.String NODE_NAME_PREFIX
           
 int weight
           
 int x
           
 int y
           
 
Constructor Summary
GraphNode(int nameNr, int weight, int gridX, int gridY, int x, int y)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          Two nodes are considered equal if they have the same name or the same raw coordinates.
 java.lang.String getDominatorTeam()
           
 void setDominatorTeam(java.lang.String dominatorTeam)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NODE_NAME_PREFIX

public static final java.lang.String NODE_NAME_PREFIX
See Also:
Constant Field Values

name

public java.lang.String name

x

public int x

y

public int y

weight

public int weight

agents

public java.util.Vector<GraphSimulationAgentState> agents

gridX

public int gridX

gridY

public int gridY
Constructor Detail

GraphNode

public GraphNode(int nameNr,
                 int weight,
                 int gridX,
                 int gridY,
                 int x,
                 int y)
Method Detail

equals

public boolean equals(java.lang.Object obj)
Two nodes are considered equal if they have the same name or the same raw coordinates.

Overrides:
equals in class java.lang.Object

getDominatorTeam

public java.lang.String getDominatorTeam()
Returns:
the dominatorTeam

setDominatorTeam

public void setDominatorTeam(java.lang.String dominatorTeam)
Parameters:
dominatorTeam - the dominatorTeam to set


Copyright © 2011. All Rights Reserved.