Skip to content
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

Automatically initialise new attributes #157

Merged
merged 4 commits into from
Jul 4, 2018
Merged

Automatically initialise new attributes #157

merged 4 commits into from
Jul 4, 2018

Conversation

Enchufa2
Copy link
Member

@Enchufa2 Enchufa2 commented Jul 4, 2018

E.g.,

library(simmer)

t <- trajectory() %>%
  set_attribute("asdf", 1, mod="+", init=10) %>%
  set_global("fdsa", 2, mod="+") # init=0 by default

simmer() %>%
  add_generator("dummy", t, at(0), mon=2) %>%
  run() %>%
  get_mon_attributes()
#>   time   name  key value replication
#> 1    0 dummy0 asdf    11           1
#> 2    0        fdsa     2           1

@codecov
Copy link

codecov bot commented Jul 4, 2018

Codecov Report

Merging #157 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #157   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          50     50           
  Lines        2832   2833    +1     
=====================================
+ Hits         2832   2833    +1
Impacted Files Coverage Δ
inst/include/simmer/activity.h 100% <ø> (ø) ⬆️
R/trajectory-activities.R 100% <100%> (ø) ⬆️
inst/include/simmer/activity/arrival.h 100% <100%> (ø) ⬆️
src/activity.cpp 100% <100%> (ø) ⬆️
R/trajectory-class.R 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6e70ad5...e65a9ce. Read the comment docs.

@Enchufa2 Enchufa2 merged commit 155d79c into master Jul 4, 2018
@Enchufa2 Enchufa2 deleted the attr-init branch July 4, 2018 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant