TransitResult

data class TransitResult(val totalTime: Double, val waitForVehicle: Double, val timeAboard: Double, val origin: String, val destination: String, val vehicleName: String, val numVehiclesPassed: Int)(source)

What one ride cost the load that took it.

The counterpart of FleetTransportResult for a load that boarded rather than posted, and it decomposes the same way so that the two are comparable: a wait, then a ride. There is no waitForAssignment term, and its absence is the whole difference between the two paradigms -- nobody decided that a vehicle would come, so there is no interval during which that decision was pending.

Parameters

totalTime

joining the line at the origin stop until being set down

waitForVehicle

joining the line until aboard. At an interchange this is the connection time, which is why a transfer needs no machinery of its own: a rider whose process rides, then rides again, reports the connection as the second ride's wait

timeAboard

aboard until set down

origin

the stop it boarded at

destination

where it was set down

vehicleName

which vehicle carried it

numVehiclesPassed

how many vehicles served the origin stop while it waited and left it standing, for want of room. The per-rider counterpart of the stop's NumPassedByFull, and the thing a capacity study is usually about

Constructors

Link copied to clipboard
constructor(totalTime: Double, waitForVehicle: Double, timeAboard: Double, origin: String, destination: String, vehicleName: String, numVehiclesPassed: Int)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

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