Learn R Programming

simmer (version 3.5.1)

select: Select a resource

Description

Resource selector for a subsequent seize/release.

Usage

select(.trj, resources, policy = c("shortest-queue", "round-robin", "first-available", "random"), id = 0)

Arguments

.trj
the trajectory object.
resources
one or more resource names, or a callable object (a function) which must return a resource name to select.
policy
if resources is a vector of names, this parameter determines the criteria for selecting a resource among the set of policies available; otherwise, it is ignored.
id
selection identifier for nested usage.

Value

Returns the trajectory object.

See Also

seize_selected, release_selected, set_capacity_selected, set_queue_size_selected.