Define a new resource in a simulation environment.
add_resource(.env, name, capacity = 1, queue_size = Inf, mon = TRUE, preemptive = FALSE, preempt_order = c("fifo", "lifo"), queue_size_strict = FALSE)
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.
whether arrivals in the server can be preempted or not based on seize priorities.
if the resource is preemptive and preemption occurs with
more than one arrival in the server, this parameter defines which arrival should
be preempted first. It must be
if the resource is preemptive and preemption occurs,
this parameter controls whether the
Returns the simulation environment.