release

abstract fun release(allocation: Allocation, releasePriority: Int = PRIORITY)

Releases the allocation of the resource

Parameters

allocation

represents an allocation of so many units of a resource to an entity

releasePriority

the priority associated with this release. This priority is used to order the resumption events associated with the release. If multiple releases occur at the same simulated time, this priority can be used to order the associated resumption of dependent processes.


abstract fun release(resource: Resource, releasePriority: Int = PRIORITY)

Releases ANY(ALL) allocations related to the resource that are allocated to the entity currently executing this process

Parameters

resource

the resource to release

releasePriority

the priority associated with this release. This priority is used to order the resumption events associated with the release. If multiple releases occur at the same simulated time, this priority can be used to order the associated resumption of dependent processes.


abstract fun release(pooledAllocation: ResourcePoolAllocation, releasePriority: Int = PRIORITY)

Releases the allocations associated with using a ResourcePool

Parameters

releasePriority

the priority associated with this release. This priority is used to order the resumption events associated with the release. If multiple releases occur at the same simulated time, this priority can be used to order the associated resumption of dependent processes.