Modify a generator's trajectory or distribution by name.

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.