Adds a generator to a simulation environment.
add_generator(env, name_prefix, trajectory, dist, mon = TRUE)
the simulation environment.
the name prefix of the generated arrivals.
the trajectory that the generated arrivals will follow (see create_trajectory).
a function modelling the interarrival times (returning a negative value stops the generator).
whether the simulator must monitor the generated arrivals or not.
Returns the simulation environment.
Other methods to deal with a simulation environment: simmer, now, peek, peek, step, run, add_resource, get_mon_arrivals, get_mon_resources, get_capacity, get_queue_size, get_server_count, get_queue_count.