ResourceIfc

Properties

Link copied to clipboard
abstract val capacity: Int

The current capacity of the resource. In general, it can be 0 or greater

Link copied to clipboard

If a(t) is greater than zero

Link copied to clipboard
open val isBusy: Boolean

Checks to see if the resource is busy, has some units allocated

Link copied to clipboard
open val isIdle: Boolean

Checks if the resource is idle, has no units allocated

Link copied to clipboard
abstract val isInactive: Boolean

Checks to see if the resource is inactive

Link copied to clipboard

If c(t) is the current capacity and b(t) is the current number busy, then a(t) = c(t) - b(t) is the current number of available units. Under some capacity change situations, a(t) may be negative.

Link copied to clipboard
abstract val numBusy: Int

The number of busy units at any time t, b(t)