shortest Path Zones
fun shortestPathZones(fromZone: Zone, travellingForward: Boolean, toIntersection: GuidedPathNetwork.Intersection): List<Zone>(source)
The zones of the shortest path, ignoring the route selection rule.
This is what the default rule returns, and it is public so that a rule of the modeler's own can build on it -- taking the shortest path except where it is congested, for instance, rather than reimplementing path finding.
Parameters
from Zone
the zone the transporter holds now, which is not part of the result
travelling Forward
the direction it faces on a link zone, ignored at an intersection
to Intersection
where it is going
Throws
when the destination cannot be reached