LineStop

class LineStop @JvmOverloads constructor(val stop: Stop, val action: TourStopActionIfc = DoInOrder(AlightHere(stop), BoardWaiting(stop)))(source)

One stop of a line: where to call, and what to do on arriving.

The action defaults to what serving a stop ordinarily means -- put down everyone bound for here, then take whoever is waiting for somewhere further along -- so a line is usually written as a list of stops and nothing else. A terminal that only loads, a drop point that only unloads, and a timing point that dwells are all written by naming a different action.

Constructors

Link copied to clipboard
constructor(stop: Stop, action: TourStopActionIfc = DoInOrder(AlightHere(stop), BoardWaiting(stop)))

Properties

Link copied to clipboard
Link copied to clipboard
val stop: Stop

Functions

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