Stop Context Ifc
What a vehicle knows, and what it can do, at the stop it has just reached.
Handed to TourStopActionIfc.perform so that an action written outside this library can do the two things that must be done in one particular way -- take a load aboard and put one down -- without being given the subsystem's internals to do it with.
Properties
True while this stop is still the vehicle's to serve: false once the task it serves has been cancelled or taken back from the vehicle, as a line's cycle can be while the vehicle holds here. An action that holds the vehicle asks this each time it wakes, and stops, boarding nothing more. True when nothing else is known.
Everywhere the vehicle is still going after this stop.
How many riders may come aboard here: the vehicle's spare room, less the places that pickups later in this round still need. A boarding action takes no more than this, so that a load the round is committed to collecting finds its place. The vehicle's spare room when nothing else is known.
The vehicle that arrived.
Functions
Puts task's load down: measures the ride, waits out the unloading delay, takes it off the manifest, completes the task and the commitment behind it, and returns the load to its own process.
Puts a rider down here and returns it to its own process.
Takes task's load aboard: waits out the loading delay, puts it on the manifest, marks the instant its ride begins, tells the dispatcher the vehicle has possession, and releases the load from its wait.
Takes a waiting rider aboard: out of the stop's line, onto the manifest, and released from its wait.