BoardWaiting

data class BoardWaiting @JvmOverloads constructor(val stop: Stop, val limit: Int = Int.MAX_VALUE) : TourStopActionIfc(source)

Take whoever is waiting here for somewhere further along, in the order they arrived, until the vehicle is full or limit have boarded.

Somewhere further along is the whole of the eligibility rule, and it is read from the tour rather than from the line: a vehicle short-turning, or running a line it was reassigned to mid-cycle, will not take somebody to a stop it is no longer going to.

Parameters

stop

whose line to draw from

limit

the most to take in one visit, for a service that meters boarding. Unlimited by default, in which case the capacity is the only thing that stops it

Constructors

Link copied to clipboard
constructor(stop: Stop, limit: Int = Int.MAX_VALUE)

Properties

Link copied to clipboard
val limit: Int
Link copied to clipboard
open override val servesStop: Stop

The permanent stop this action serves, or null for an action that serves none.

Link copied to clipboard
val stop: Stop

Functions

Link copied to clipboard
open suspend override fun KSLProcessBuilder.perform(context: StopContextIfc)

Carried out once the vehicle has arrived at StopContextIfc.stop.