seizeTrigger

fun seizeTrigger(amountNeeded: Int = 1, seizePriority: Int = ProcessModel.SEIZE_PRIORITY, resourceSelectionRule: ResourceSelectionRuleIfc = defaultResourceSelectionRule, resourceAllocationRule: ResourceAllocationRuleIfc = defaultResourceAllocationRule, recordRenegedWait: Boolean = true): WaitTrigger<ResourcePoolAllocation>(source)

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

Parameters

amountNeeded

the number of units wanted; at least 1

seizePriority

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

resourceSelectionRule

the rule that selects the members, as for seize

resourceAllocationRule

the rule that allocates among them, as for seize

recordRenegedWait

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