Learn R Programming

simmer (version 3.1.1)

seize: Add a seize activity

Description

Adds a new activity capable of seizing a resource to the tail of a trajectory.

Usage

seize(traj, resource, amount = 1, priority = 0)

Arguments

traj

the trajectory object.

resource

the name of the resource.

amount

the amount to seize.

priority

the priority of the seize (a higher integer equals higher priority, defaults to 0)

Value

The trajectory object.

See Also

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