StopInstruction

sealed class StopInstruction(source)

What a controller tells a vehicle to do about the next stop in its tour.

Three instructions cover the four things a real controller says: run normally, hold to even out a headway, run express, and turn back short.

Inheritors

Constructors

Link copied to clipboard
protected constructor()

Types

Link copied to clipboard
data class Serve @JvmOverloads constructor(val departNotBefore: Double = Double.NEGATIVE_INFINITY) : StopInstruction

Go there and perform the stop's action.

Link copied to clipboard

Serve it, and end the tour there rather than going on. A short turn.

Link copied to clipboard
data object Skip : StopInstruction

Do not go. Advance past this stop to the next one.