shortestPathZones

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

fromZone

the zone the transporter holds now, which is not part of the result

travellingForward

the direction it faces on a link zone, ignored at an intersection

toIntersection

where it is going

Throws

when the destination cannot be reached