Skip to contents

The combinations of two features that a step made possible or impossible. Among the features that can vary in both versions, a combination of two features is possible exactly when no link forbids it (property P3), so a gained link forbids one combination and a lost link allows one: a lost "a requires b" allows "a without b", a lost conflict allows "a and b", a lost at-least-one line allows "neither". With a sample of configurations (the tests of the old version), in_sample counts the configurations that have the combination: a test with a combination now impossible is no longer valid; a combination now possible with in_sample 0 is a new interaction that no test exercises.

Usage

vp_interaction_changes(old, new, sample = NULL)

Arguments

old

The older version of a model (from vp_generate() or vp_read()).

new

The newer version of the same model.

sample

Optional: a data frame with one 0/1 (or FALSE/TRUE) column per feature, one row per configuration.

Value

A tibble with feature_1, value_1, feature_2, value_2 (TRUE = selected), change ("now possible" or "now impossible"), graph (the link that changed) and, with a sample, in_sample.

Examples

old <- vp_generate(vp_example("miband3_planned.uvl"), or_graph = TRUE)
new <- vp_generate(vp_example("miband3_realized.uvl"), or_graph = TRUE)
vp_interaction_changes(old, new)
#> # A tibble: 21 × 6
#>    feature_1      value_1 feature_2      value_2 change         graph   
#>    <chr>          <lgl>   <chr>          <lgl>   <chr>          <chr>   
#>  1 MovementFilter TRUE    Screen         FALSE   now impossible requires
#>  2 MovementFilter TRUE    OLED           FALSE   now impossible requires
#>  3 MovementFilter TRUE    CapacityButton FALSE   now impossible requires
#>  4 MovementFilter TRUE    BLEv40         FALSE   now impossible requires
#>  5 BLEv40         TRUE    Screen         FALSE   now impossible requires
#>  6 BLEv40         TRUE    OLED           FALSE   now impossible requires
#>  7 BLEv40         TRUE    CapacityButton FALSE   now impossible requires
#>  8 BLEv42         TRUE    Screen         FALSE   now impossible requires
#>  9 BLEv42         TRUE    OLED           FALSE   now impossible requires
#> 10 BLEv42         TRUE    CapacityButton FALSE   now impossible requires
#> # ℹ 11 more rows