Learn R Programming

simmer (version 3.2.0)

timeout: Add a timeout activity

Description

Adds a new activity capable of executing any user-defined task and setting an associated delay to the tail of a trajectory.

Usage

timeout(traj, task)

Arguments

traj
the trajectory object.
task
a callable object (a function) that returns a numeric value (negative values are automatically coerced to positive).

Value

  • The trajectory object.

See Also

Other methods to deal with trajectories: create_trajectory, get_head, get_tail, get_n_activities, seize, release, set_attribute, branch, rollback.