Tour

class Tour(source)

Where a vehicle is going and what it does when it gets there.

A single-load transport is a two-stop tour, and the control loop does not know how many stops it has. That is the whole point: multi-load work adds stops rather than adding a code path, so the loop written here is the loop that will still be running when a vehicle carries four things.

Properties

Link copied to clipboard

True when this round comes back to where it began.

Link copied to clipboard
Link copied to clipboard

The stop the vehicle is travelling to, or null when the tour is done.

Link copied to clipboard

The stops still to be reached, in order. What a tour policy is given to reorder.

Link copied to clipboard

When the round began: the instant the vehicle was committed to it.

Link copied to clipboard

The stops, in the order they will be reached.

Link copied to clipboard

Functions

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