View source: R/decision_points.R
| DecisionPoint | R Documentation |
Declares a point in the simulation where a policy may be consulted. Decision
points are declared in the Schema (schema$decision_points), not inferred at
runtime.
DecisionPoint(
id,
trigger,
allowed_actions = NULL,
action_handlers = NULL,
condition = NULL,
audit = FALSE,
observation_fn = NULL,
label = NULL,
on_pending_action = c("warn", "replace", "keep", "error")
)
id |
Character scalar; unique identifier (e.g., |
trigger |
Character vector of event types and/or a predicate function
|
allowed_actions |
Optional character vector of named action types. If
|
action_handlers |
Optional named list of functions, keyed by action type.
Each function has signature |
condition |
Optional function |
audit |
Logical scalar (default |
observation_fn |
Optional function |
label |
Optional human-readable description. |
on_pending_action |
What to do when the policy proposes an action at this decision point while a previously proposed action from the same decision point is still waiting to be realized. A decision point holds at most one pending action at a time.
|
A list of class "DecisionPoint".
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.