FleetVehicleCIfc

Controlled access to a vehicle a dispatcher commits to tasks: the four policies it carries, what it is doing, and how its time was spent.

The passive counterpart is ksl.modeling.guidedpath.GuidedTransporterCIfc, and the two report the same fractions of time on purpose -- moving, transporting, moving empty, blocked -- because the whole claim of the two-paradigm design is that one shop modelled either way gives one answer. A contract that reported them differently would make that claim unverifiable.

A FleetVehicle is not a ksl.modeling.entity.Resource: it is never seized, it is assigned. So there is no capacity here, and fracTimeOnTask is the quantity that takes utilization's place -- committed, whether moving or standing.

Inheritors

Properties

Link copied to clipboard
abstract var bidPolicy: BidPolicyIfc

What it offers when a dispatcher runs an auction.

Link copied to clipboard

Loads aboard as a fraction of capacity, registered only for a multi-load vehicle.

Link copied to clipboard

The task it is committed to, or null.

Link copied to clipboard

Where it is, by name.

Link copied to clipboard

What it does when it has nothing to do.

Link copied to clipboard

Fraction of time stopped by space it could not have; flat zero on a free path.

Link copied to clipboard

Fraction of time travelling, loaded or empty.

Link copied to clipboard

Fraction of time travelling empty.

Link copied to clipboard

Fraction of time committed to a task, whether moving or standing.

Link copied to clipboard

Fraction of time travelling with a load aboard.

Link copied to clipboard
abstract val hasAssignment: Boolean

True when it has a task in hand.

Link copied to clipboard
abstract var homeBase: String?

Where it returns to when its disposition policy sends it home, or null when it has none.

Link copied to clipboard

What happens to the task in hand when the vehicle is interrupted.

Link copied to clipboard
abstract val isAvailable: Boolean

True when it could take work: in service, not failed, and not already committed.

Link copied to clipboard
abstract val isFailed: Boolean

True while a failure model has it broken down.

Link copied to clipboard
abstract val isOutOfService: Boolean

True while it has been taken out of service.

Link copied to clipboard
abstract val loadCapacity: Int

How many loads it may carry at once.

Link copied to clipboard
abstract val loadsPerTour: ResponseCIfc?

Loads carried per tour, registered only for a vehicle that may hold more than one.

Link copied to clipboard

Loads aboard over time, registered only for a multi-load vehicle.

Link copied to clipboard

How many times it was stopped by space it could not have.

Link copied to clipboard

Whether it is willing to serve a stop it has been offered.