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

Get seized amount from resources #179

Enchufa2 opened this Issue Nov 30, 2018 · 0 comments


None yet
1 participant
Copy link

Enchufa2 commented Nov 30, 2018

If an arrival is dropped from a resource (see #177) and several resources were seized, this may be needed in order to know which one was responsible.

Also, this should be always possible:

trajectory() %>%
  release("res1", function() get_seized(env, "res1")) %>%
  release("res2", function() get_seized(env, "res2")) %>%

Enchufa2 added a commit that referenced this issue Dec 1, 2018

Enchufa2 added a commit that referenced this issue Dec 2, 2018

close #25, #179: mechanism to retrieve seized amounts and release all (

* return immediately if seize/release amount=0

* provide get_seized method

* implementation of #25

* update docs

* implementation of #179

* don't allow negative id for get_*_selected

* some refactoring

* fix test

* update NEWS

* add tests

@Enchufa2 Enchufa2 closed this Dec 2, 2018

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