FleetTransportResult

data class FleetTransportResult(val totalTime: Double, val waitForAssignment: Double, val waitForArrival: Double, val timeAboard: Double, val blockedTime: Double, val failedTime: Double, val routeLength: Double, val vehicleName: String, val numReassignments: Int)(source)

What one transport cost the load that asked for it.

The three durations partition the wait: waitForAssignment runs from posting until a vehicle committed, waitForArrival from there until the load was aboard, and timeAboard from there until it was set down. Their sum is totalTime.

The third is named for the interval rather than for the journey, matching FleetSystem.timeAboard and for the same reason: the passive subsystem's transportTime means request to set-down, which is the whole of totalTime here rather than this last leg of it.

Parameters

totalTime

posting to delivery

waitForAssignment

posting until a vehicle committed to the task

waitForArrival

the commitment until the load was aboard

timeAboard

aboard until set down, including any unloading delay

blockedTime

how much of the above the vehicle spent unable to claim the space ahead of it

failedTime

how much of the above the vehicle spent out of service -- broken down, waiting for a technician, or being pushed out of the way. Part of the intervals above rather than outside them: the load was waiting, or aboard, throughout. Zero for a fleet that cannot fail.

routeLength

how far the vehicle travelled while carrying the load

vehicleName

which vehicle carried it

numReassignments

how many times the task was taken back and given to someone else. No counterpart in the passive subsystem's result: it is the observable trace of re-tasking, and is zero unless a policy revokes.

Constructors

Link copied to clipboard
constructor(totalTime: Double, waitForAssignment: Double, waitForArrival: Double, timeAboard: Double, blockedTime: Double, failedTime: Double, routeLength: Double, vehicleName: String, numReassignments: 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
Link copied to clipboard
Link copied to clipboard

Functions

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