Getters for processes (generators and arrivals) number of arrivals generated by a generator, the name of the active arrival, an attribute from the active arrival or a global one, and prioritization values.
get_n_generated(.env, generator)get_name(.env)
get_attribute(.env, key, global = FALSE)
get_global(.env, key)
get_prioritization(.env)
the simulation environment.
the name of the generator.
the attribute name.
if TRUE
, the attribute will be global instead of per-arrival.
get_n_generated
returns the number of arrivals generated by a
given generator.
get_name
returns the number of the running arrival. get_attribute
returns a running arrival's attribute or a global one. If the provided key was
not previously set, it returns a missing value. get_global
is a shortcut
for get_attribute(global=TRUE)
. get_prioritization
returns a
running arrival's prioritization values. get_name
, get_attribute
and get_prioritization
are meant to be used inside a trajectory; otherwise,
there will be no arrival running and these functions will throw an error.