add_generator

0th

Percentile

Add a Generator

Define a new generator of arrivals in a simulation environment.

Usage
add_generator(.env, name_prefix, trajectory, distribution, mon = 1,
  priority = 0, preemptible = priority, restart = FALSE)
Arguments
.env

the simulation environment.

name_prefix

the name prefix of the generated arrivals.

trajectory

the trajectory that the generated arrivals will follow (see trajectory).

distribution

a function modelling the interarrival times (returning a negative value stops the generator).

mon

whether the simulator must monitor the generated arrivals or not (0 = no monitoring, 1 = simple arrival monitoring, 2 = level 1 + arrival attribute monitoring)

priority

the priority of each arrival (a higher integer equals higher priority; defaults to the minimum priority, which is 0).

preemptible

if a seize occurs in a preemptive resource, this parameter establishes the minimum incoming priority that can preempt these arrivals (an arrival with a priority greater than preemptible gains the resource). In any case, preemptible must be equal or greater than priority, and thus only higher priority arrivals can trigger preemption.

restart

whether the activity must be restarted after being preempted.

Value

Returns the simulation environment.

See Also

Convenience functions: at, from, to, from_to.

Aliases
  • add_generator
Documentation reproduced from package simmer, version 3.6.3, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.