Skip to content

Throw a warning when an arrival leaves without releasing resources #76

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Enchufa2 opened this issue Sep 30, 2016 · 1 comment
Closed

Comments

@Enchufa2
Copy link
Member

Leaving without releasing resources is an intended feature, but it may also be a source of problems and unintended behaviours if errors go unnoticed.

@Enchufa2
Copy link
Member Author

Test case:

library(simmer)

t <- create_trajectory() %>%
  seize("dummy", 1)

env <- simmer(verbose = TRUE) %>%
  add_resource("dummy") %>%
  add_generator("arrival", t, at(0)) %>%
  run()

should warn the user with something like "arrival0 is leaving without releasing dummy".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant