Activity for modifying an arrival's prioritization values.

set_prioritization(.trj, values, mod = c(NA, "+", "*"))

Arguments

.trj

the trajectory object.

values

expects either a vector/list or a callable object (a function) returning a vector/list of three values c(priority, preemptible, restart). A negative value leaves the corresponding parameter unchanged. See add_generator for more information about these parameters.

mod

if set, values modify the attributes rather than substituting them.

Value

Returns the trajectory object.

See also

get_prioritization.