Concatenate any number of trajectories in the specified order.

join(...)

Arguments

...
trajectory objects.

Value

Returns a new trajectory object.

See also

[.trajectory, [[.trajectory, length.trajectory, get_n_activities.

Examples

t1 <- trajectory() %>% seize("dummy", 1) t2 <- trajectory() %>% timeout(1) t3 <- trajectory() %>% release("dummy", 1) join(t1, t2, t3)
#> trajectory: anonymous, 3 activities #> { Activity: Seize | resource: dummy | amount: 1 } #> { Activity: Timeout | delay: 1 } #> { Activity: Release | resource: dummy | amount: 1 }
trajectory() %>% join(t1) %>% timeout(1) %>% join(t3)
#> trajectory: anonymous, 3 activities #> { Activity: Seize | resource: dummy | amount: 1 } #> { Activity: Timeout | delay: 1 } #> { Activity: Release | resource: dummy | amount: 1 }