Skip to contents

The longest chain of decisions: each decision forces the next, by a requirement, a conflict or an at-least-one line (the modal implication graph of vp_mig()). Decisions that force each other count as one step (for example "Screen left out" and "BT40 selected", which are opposites). It is the counterpart of the depth with the three graphs: how long the longest explanation of a forced decision can get, conflicts included.

Usage

vp_longest_decision_chain(model)

Arguments

model

A model, from vp_generate() or vp_read(), in its complete or its minimal form.

Value

A tibble with step and decisions (the decisions of the step, written "A" for "A selected" and "not A" for "A left out", joined by " = " when they force each other). Its number of rows is the length of the chain; like the depth, it counts decisions, so a model whose features are all free has a chain of one.

Examples

band <- vp_generate(vp_example("miband3.uvl"), or_graph = TRUE)
vp_longest_decision_chain(band)
#> # A tibble: 5 × 2
#>    step decisions                       
#>   <int> <chr>                           
#> 1     1 MovementFilter                  
#> 2     2 not HeartRateSensor             
#> 3     3 not BLEv42                      
#> 4     4 not TouchScreen                 
#> 5     5 not ContactlessPayment = not NFC