Activity for modifying an arrival's attributes.
set_attribute(.trj, keys, values, mod = c(NA, "+", "*"), init = 0)set_global(.trj, keys, values, mod = c(NA, "+", "*"), init = 0)
the trajectory object.
the attribute name(s), or a callable object (a function) which must return attribute name(s).
numeric value(s) to set, or a callable object (a function) which must return numeric value(s).
if set, values
modify the attributes rather than substituting them.
initial value, applied if mod
is set and the attribute was
not previously initialised. Useful for counters or indexes.
Returns the trajectory object.
get_attribute
, get_global
,
timeout_from_attribute
, timeout_from_global
.