# Resources and stores

Queue, service and capacity of a resource, and a store's contents.

Each value is the expression read as an auxiliary at t = 20 of a small model (time step 0.5) with a resource `Desk` of capacity 2 and a stream of arrivals that outruns it, a level `Tank` filled by the flow `fill`, a conversion `Digester` into the level `Holder`, a delay, a series, a table, a variable, a power draw, a two-node network and a subscript `region` with three elements.

## AVAILABLE

`AVAILABLE("resource")`: 1 argument.

capacity in force at resource NAME, seized units NOT deducted (free units: IDLE).

Example: `AVAILABLE("Desk")` gives 2.

Used in the bundled models Biogas digester, holder and CHP, Biogas plant (library assets).

## IDLE

`IDLE("resource")`: 1 argument.

free units of resource NAME: nothing holds them now (AVAILABLE minus the seized).

Example: `IDLE("Desk")` gives 0.

Used in the bundled models Emergency department: bedside scan (film template).

## MR

`MR("resource")`: 1 argument.

units currently scheduled at resource/set NAME (net of capacity-schedule/failure blockers).

Example: `MR("Desk")` gives 2.

Used in the bundled models Emergency department: staffing game.

## NQ

`NQ("resource")`: 1 argument.

entities waiting for resource/set NAME.

Example: `NQ("Desk")` gives 23.

Used in the bundled models Emergency department: staffing game, Palletizing line, Policy-routed parallel servers.

## NR

`NR("resource")`: 1 argument.

entities/units currently in service at resource/set NAME.

Example: `NR("Desk")` gives 2.

Used in the bundled models Emergency department: staffing game, Palletizing line, Policy-routed parallel servers.

## NS

`NS("store")`: 1 argument.

items currently in store NAME (a Hold/Batch/Match store, by block or store name).

Example: `NS("parked")` gives --.

Used in the bundled models HOLD on a store's contents.

## See also

- [All function groups and the grammar](index.md), [Distributions](../distributions/index.md)
- Guides that use them: [Expressions and variables](../../modelling-guide/expressions-variables.md), [Coming from Arena](../../coming-from/arena.md), [Continuous quantities: levels, flows and time-series inputs](../../modelling-guide/continuous-quantities.md), [Layout, paths and vehicles](../../modelling-guide/layout-paths-vehicles.md), [Coming from AnyLogic](../../coming-from/anylogic.md), [How do I combine event flow, system dynamics and agents?](../../goals/hybrid-model.md) and 1 more
