ShortestPathRouteRule

Sends every transporter along the shortest path, ignoring where other transporters are.

This is the default, and it is what the reference tools do. Congestion is left to resolve itself through blocking rather than being anticipated, which keeps routing off the hot path and keeps the behaviour of a model explicable: a transporter's path depends only on the layout, never on what happened to be in the way when it was dispatched.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun selectRoute(network: GuidedPathNetwork, fromZone: Zone, travellingForward: Boolean, toIntersection: GuidedPathNetwork.Intersection): List<Zone>

The zones the transporter should cross, in order, ending at the destination's zone.

Link copied to clipboard
open override fun toString(): String