ResourcePoolAllocation

class ResourcePoolAllocation(val entity: ProcessModel.Entity, val resourcePool: ResourcePool, theAmount: Int = 1, val queue: RequestQ, allocationName: String? = null)

An allocation represents a distinct usage of a resource by an entity with an amount allocated. Entities can have multiple allocations for the same resource. An allocation is in response to separate requests for units. Multiple requests by the same entity for units of the resource result in multiple allocations (when filled). An allocation is not created until the requested amount is available.

Constructors

Link copied to clipboard
constructor(entity: ProcessModel.Entity, resourcePool: ResourcePool, theAmount: Int = 1, queue: RequestQ, allocationName: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var amount: Int

The amount of the allocation representing the units allocated of the pool

Link copied to clipboard
Link copied to clipboard
val id: Int
Link copied to clipboard
var name: String?

An optional name for the allocation

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The time that the allocation was allocated to the pool

Link copied to clipboard

Functions

Link copied to clipboard
open override fun toString(): String