public class ScheduleDijkstra
extends java.lang.Object
| Constructor and Description |
|---|
ScheduleDijkstra(ScheduleOracle oracle)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<ScheduleEntry> |
getShortestPath(java.lang.Integer from,
java.lang.Integer to,
double time)
Finds and returns the fastest path between two destinations
|
public ScheduleDijkstra(ScheduleOracle oracle)
oracle - The schedule oracle
all nodes are OKpublic java.util.List<ScheduleEntry> getShortestPath(java.lang.Integer from, java.lang.Integer to, double time)
from - The source of the pathto - The destination of the pathtime - The time when the path starts