Concatenate any number of trajectories in the specified order.

join(...)

Arguments

...

trajectory objects.

Value

Returns a new trajectory object.

See also

Examples

t1 <- trajectory() %>% seize("dummy", 1) t2 <- trajectory() %>% timeout(1) t3 <- trajectory() %>% release("dummy", 1) ## join can be used alone join(t1, t2, t3)
#> trajectory: anonymous, 3 activities #> { Activity: Seize | resource: dummy, amount: 1 } #> { Activity: Timeout | delay: 1 } #> { Activity: Release | resource: dummy, amount: 1 }
## or can be chained in a trajectory definition 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 }