Skip to content

Leave a trajectory with some probability #63

@Enchufa2

Description

@Enchufa2

Now, it can be done with a branch (for instance), but it would be far more elegant to have an specific verb for this. Leave, stop, drop...?

So instead of

patient <- create_trajectory() %>%
  seize("bed", 1, priority=induction1) %>%
  timeout(induction1_timeout) %>%
  branch(induction1_prob_continue, c(T, F),
         create_trajectory() %>% release("bed"),
         create_trajectory() %>% release("bed")) %>%
  seize("bed", 1, priority=induction2) %>%
  ...

we could do this:

patient <- create_trajectory() %>%
  seize("bed", 1, priority=induction1) %>%
  timeout(induction1_timeout) %>%
  release("bed") %>%
  leave(induction1_prob_leave) %>%
  seize("bed", 1, priority=induction2) %>%
  ...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions