massim.competition2011.scenario
Class GraphNode
java.lang.Object
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
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 |
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
GraphNode
public GraphNode(int nameNr,
int weight,
int gridX,
int gridY,
int x,
int y)
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 © 2012. All Rights Reserved.