PedestrianPriorityArbiter

People cross whenever they arrive; traffic waits.

In the field this is the failure mode rather than a policy: under any steady pedestrian flow there is never an instant with nobody waiting, so the crossing never reopens and vehicles starve. It ships so that a comparison can show that happening rather than assert it.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun admitsPedestrian(crossing: ZoneCrossing): Boolean

May a pedestrian step onto the crossing now?

Link copied to clipboard
open override fun barsVehicles(crossing: ZoneCrossing): Boolean

Should the crossing be held shut against vehicles?