public class DijkstraNode
extends java.lang.Object
DijkstraPathFinder.| Modifier and Type | Field and Description |
|---|---|
protected double |
distance
The distance of the node from the start.
|
protected java.util.Collection<DijkstraNode> |
neighbors
The neighbors of the node.
|
protected DijkstraNode |
previous
The predecessor of the node.
|
protected int |
x
The x position of the node.
|
protected int |
y
The y position of the node.
|
| Constructor and Description |
|---|
DijkstraNode(int x,
int y)
Creates a Dijkstra Node at position (x,y).
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toString() |
protected double distance
protected java.util.Collection<DijkstraNode> neighbors
protected DijkstraNode previous
protected int x
protected int y