The longest chain of forced decisions (all three graphs)
Source:R/hierarchy.R
vp_longest_decision_chain.RdThe 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.
Arguments
- model
A model, from
vp_generate()orvp_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.
See also
Other hierarchy:
vp_atomic_sets(),
vp_chains(),
vp_common_dependants(),
vp_common_requirements(),
vp_depth(),
vp_downset(),
vp_false_optional(),
vp_feature_tree(),
vp_foundations(),
vp_implied_requires(),
vp_largest_free_set(),
vp_largest_unrelated_set(),
vp_leaves(),
vp_levels(),
vp_longest_chain(),
vp_redundant_candidates(),
vp_skeleton(),
vp_tree_agreement(),
vp_upset(),
vp_width()
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