DispatchContext

What a policy is given, and the only things it may do.

Grows in later phases -- an auction in the negotiated phase, a feasible-action set in the re-tasking phase -- but AssignmentPolicyIfc.assign's signature never changes, so a policy written today keeps compiling.

Properties

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

The vehicle-to-task pairings available at this instant, as an object to enumerate and search.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
suspend fun KSLProcessBuilder.auction(cfp: CallForProposals, deadline: Double, selectBest: (List<Bid>) -> Bid? = ::lowestBidByName): Bid?

Runs a Contract-Net negotiation over the available vehicles and returns the winning bid.

Link copied to clipboard
fun distanceTo(vehicle: FleetVehicle, location: String): Double

Distance from where a vehicle is now to a location, along the guide path.