Learn R Programming

simmer (version 3.5.1)

set_trajectory: Add a set trajectory/distribution activity

Description

Modify a generator's trajectory or distribution by name.

Usage

set_trajectory(.trj, generator, trajectory)
set_distribution(.trj, generator, distribution)

Arguments

.trj
the trajectory object.
generator
the name of the generator or a function returning a name.
trajectory
the trajectory that the generated arrivals will follow.
distribution
a function modelling the interarrival times (returning a negative value stops the generator).

Value

Returns the trajectory object.

See Also

activate, deactivate.