Closed
Description
Probably, it is more efficient (and more easy to use) to integrate this attributes in the C++ core. Use case provided by @bart6114:
t0 <- create_trajectory("trauma patient") %>%
set_attribute(health_status=function() runif(1, .05, .3)) %>%
seize("doctor", 1) %>%
timeout(function() rnorm(1,15)) %>%
release("doctor", 1) %>%
set_attribute(health_status=
get_attribute("health_status") +
runif(1, .05, .3))
Possibilities:
- A list attached to the activities
- Attributes for each arrival
- ...?