VehiclePriorityArbiter

Traffic goes whenever it arrives; people wait for a gap.

The opposite failure, and just as instructive: on a busy aisle a gap never comes and pedestrians never cross. A crossing that only ever yields to an empty road is not a crossing.

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?