at: Arrivals at specific times

Description Usage Arguments Value See Also Examples

View source: R/generators.R

Description

Generator convenience function to generate arrivals at specific times.

Usage

1

Arguments

...

a vector or multiple parameters of times at which to initiate an arrival.

Value

Returns a generator function.

See Also

add_generator.

Examples

1
2
3
4
5
6
7
t0 <- trajectory() %>%
  timeout(0)

simmer() %>%
  add_generator("dummy", t0, at(0, c(1,10,30), 40, 43)) %>%
  run(100) %>%
  get_mon_arrivals()

simmer documentation built on May 31, 2017, 5:21 a.m.

Search within the simmer package
Search all R packages, documentation and source code