Adds a resource to a simulation environment.
add_resource(env, name, capacity = 1, queue_size = Inf, mon = TRUE)
the simulation environment.
the name of the resource.
the capacity of the server.
the size of the queue.
whether the simulator must monitor this resource or not.
Returns the simulation environment.
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.