guidedTransport

open suspend fun guidedTransport(pool: GuidedTransporterPoolWithQ, destination: String, pickupLocation: String = entity.currentLocation.name, loadingDelay: GetValueIfc = ConstantRV.ZERO, unLoadingDelay: GetValueIfc = ConstantRV.ZERO, requestPriority: Int = TRANSPORT_REQUEST_PRIORITY, loadingPriority: Int = DELAY_PRIORITY, unLoadingPriority: Int = DELAY_PRIORITY, suspensionName: String? = null): GuidedTransportResult(source)

Asks for a transporter, is carried to a destination, and gives the transporter back.

The whole of an ordinary transport in one call, and the form most models want. Where a process has to do something between being loaded and being unloaded, use the three verbs it is built from instead.

Name the arguments. The destination comes before the pickup, so a positional call such as guidedTransport(pool, "Workstation", "Entry") reads backwards: it is a trip from Entry to Workstation.

Return

what the journey cost

Parameters

pool

the transporters to ask

destination

the junction or station to be carried to

pickupLocation

where the transporter should collect the entity, by default wherever the entity already is. An entity that never set its location is where it was created: at the location given to its constructor, or else at the spatial model's default location, which for a guide-path network is the first intersection declared

loadingDelay

how long it takes to load the entity

unLoadingDelay

how long it takes to unload it

requestPriority

orders this request against others made at the same instant

loadingPriority

orders the loading delay against other events at the same instant

unLoadingPriority

orders the unloading delay likewise

suspensionName

names this suspension point when a process has several