seizeTrigger

fun seizeTrigger(requestLocation: LocationIfc? = null, seizePriority: Int = ProcessModel.SEIZE_PRIORITY, resourceSelectionRule: MovableResourceSelectionRuleIfc = defaultMovableResourceSelectionRule, resourceAllocationRule: MovableResourceAllocationRuleIfc = defaultMovableResourceAllocationRule, recordRenegedWait: Boolean = true): WaitTrigger<Allocation>(source)

A trigger for a movable resource of this pool, waiting in its own queue, for use in a wait for the first of several things (waitForFirst). As the form of MovableResourcePool that takes a queue.

Parameters

requestLocation

the location the request is made from; null means the entity's location when the wait starts

seizePriority

the priority of the yield a wait with this trigger makes before it starts

resourceSelectionRule

the rule that selects the movable resource, as for seize

resourceAllocationRule

the rule that allocates it, as for seize

recordRenegedWait

whether a request that leaves without service records its wait in the queue's time in queue