Adds a new activity capable of seizing a previously selected resource to the tail of a trajectory.
seize_selected(traj, amount = 1, priority = 0, preemptible = priority,
restart = FALSE, id = 0)
the trajectory object.
the amount to seize, accepts either a callable object (a function) or a numeric value.
the priority of the seize (a higher integer equals higher priority; defaults to the minimum priority, which is 0).
if the seize occurs in a preemptive resource, this parameter establishes the minimum incoming priority that can preempt this arrival (a seize with a priority greater than `preemptible` gains the resource). In any case, `preemptible` must be equal or greater than `priority`, and thus only higher priority seizes can trigger the preemption.
whether the activity must be restarted after being preempted.
selection identifier for nested usage.
The trajectory object.
release_selected, select. Other methods for dealing with trajectories: create_trajectory, get_head, get_tail, get_n_activities, join, seize, release, set_attribute, timeout, branch, rollback, leave.