Skip to content

Throw errors on an incorrect release #72

Closed

Description

@Enchufa2

Throw an error in these cases:

  • Not previously seized:
t <- create_trajectory() %>% 
  release("dummy", 1)

env <- simmer() %>% 
  add_resource("dummy", 1) %>% 
  add_generator("asdf", t, at(0)) %>%
  run()
  • Incorrect amount:
t <- create_trajectory() %>% 
  seize("dummy", 1) %>%
  release("dummy", 2)

env <- simmer() %>% 
  add_resource("dummy", 1) %>% 
  add_generator("asdf", t, at(0)) %>%
  run()

Activity

  1. added this to the v3.4.0 milestone on Aug 7, 2016
  2. changed the title [-]Throw errors in an incorrect release[/-] [+]Throw errors on an incorrect release[/+] on Aug 7, 2016
  3. added a commit that references this issue on Aug 7, 2016
    bd5f7fd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions