public class Node
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
Edge |
getEdge(Node q)
Returns the Edge of this Node that connects to Node q.
|
java.util.Set<Edge> |
getExits()
Returns an unmodifiable view of the Edges leaving this Node.
|
long |
getId()
Returns the unique Identifier of this Node.
|
java.util.Set<Node> |
getNeighbors()
Returns an unmodifiable view of the Nodes neighboring this Node.
|
Tile |
getTile()
Returns the Tile corresponding to this Node.
|
int |
hashCode() |
public long getId()
public Edge getEdge(Node q)
q
- A Node that neighbors this Nodepublic java.util.Set<Edge> getExits()
public java.util.Set<Node> getNeighbors()
public Tile getTile()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object