Adds a new activity capable of seizing a resource to the tail of a trajectory.
seize(traj, resource, amount = 1, priority = 0)
the trajectory object.
the name of the resource.
the amount to seize.
the priority of the seize (a higher integer equals higher priority, defaults to 0)
The trajectory object.
Other methods to deal with trajectories: create_trajectory, get_head, get_tail, get_n_activities, release, timeout, set_attribute, branch, rollback.