seizeTrigger

fun seizeTrigger(queue: RequestQ, 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, for use in a wait for the first of several things (waitForFirst). As the trigger of a resource pool, for one unit. A null requestLocation means the entity's location when the wait starts, which is what seize uses by default.

Parameters

queue

the queue the request waits in

requestLocation

the location the request is made from

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