public class Node
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object ob)
Return truee if ob is a Node with the same id as this one.
|
Edge |
getEdge(Node q)
Returns the Edge of this Node that connects to q.
|
java.util.Set<Edge> |
getExits()
Return an unmodifiable set of Edges leaving this Node.
|
long |
getId()
Return the unique Identifier of this Node.
|
java.util.Set<Node> |
getNeighbors()
Return an unmodifiable set Nodes neighboring this Node.
|
Tile |
getTile()
Return the Tile corresponding to this Node.
|
int |
hashCode()
Return a hash code for this node, based solely on its id.
|
public long getId()
public Edge getEdge(Node q)
public java.util.Set<Edge> getExits()
public java.util.Set<Node> getNeighbors()
public Tile getTile()
public boolean equals(java.lang.Object ob)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object