use more sophiscated strategy for character moving
[IRC.git] / Robust / src / Benchmarks / MMG / Java / Node.java
diff --git a/Robust/src/Benchmarks/MMG/Java/Node.java b/Robust/src/Benchmarks/MMG/Java/Node.java
new file mode 100644 (file)
index 0000000..bcc4d3e
--- /dev/null
@@ -0,0 +1,34 @@
+public class Node {
+    
+    int m_locX;
+    int m_locY;
+    int m_index;
+    Vector m_neighbours;
+    
+    public Node(int locX, int locY, int index) {
+       this.m_locX = locX;
+       this.m_locY = locY;
+       this.m_index = index;
+       this.m_neighbours = new Vector();
+    }
+    
+    public void addNeighbour(Node n) {
+       this.m_neighbours.addElement(n);
+    }
+    
+    public Vector getNeighbours() {
+       return this.m_neighbours;
+    }
+    
+    public int getXLoc() {
+       return this.m_locX;
+    }
+    
+    public int getYLoc() {
+       return this.m_locY;
+    }
+    
+    public int getIndex() {
+       return this.m_index;
+    }
+}
\ No newline at end of file