Learn R Programming

simmer (version 3.0.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, duration)

Arguments

traj

the trajectory object.

duration

a callable object (a function) that returns a numeric value (negative values are automatically converted to positive ones)

Value

The trajectory object.

See Also

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