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

New getters for running arrivals #109

Closed
Enchufa2 opened this Issue Jul 14, 2017 · 1 comment

Comments

Projects
None yet
1 participant
@Enchufa2
Member

Enchufa2 commented Jul 14, 2017

get_name() for getting the arrival name and get_attribute(), a more general way of retrieving attributes inside user-supplied functions:

trajectory() %>%
  set_attribute("dummy", 1) %>%
  log_(function() paste0(get_attribute(env, "dummy")))

instead of

trajectory() %>%
  set_attribute("dummy", 1) %>%
  log_(function(attr) paste0(attr["dummy"]))

thus deprecating the use of attr and the like, which are obscure, clunky and non-scalable.

@Enchufa2

This comment has been minimized.

Member

Enchufa2 commented Jul 15, 2017

Add also get_prioritization().

@Enchufa2 Enchufa2 reopened this Jul 15, 2017

@Enchufa2 Enchufa2 closed this in c35e62b Jul 15, 2017

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