Learn R Programming

simmer (version 3.1.1)

add_resource: Add a resource

Description

Adds a resource to a simulation environment.

Usage

add_resource(env, name, capacity = 1, queue_size = Inf, mon = TRUE)

Arguments

env

the simulation environment.

name

the name of the resource.

capacity

the capacity of the server.

queue_size

the size of the queue.

mon

whether the simulator must monitor this resource or not.

Value

Returns the simulation environment.

See Also

Other methods to deal with a simulation environment: simmer, reset, now, peek, onestep, run, add_generator, get_mon_arrivals, get_mon_attributes, get_mon_resources, get_n_generated, get_capacity, get_queue_size, get_server_count, get_queue_count.