Skip to contents

Why do two features exclude each other? The answer is a chain: the first feature requires some feature x, the second requires some feature y, and x and y have a primitive conflict. When several primitive conflicts can explain it, each one is an origin of its own (all of them must be removed for the conflict to disappear).

Usage

vp_explain_conflict(model, a, b)

Arguments

model

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

a

The name of a variable feature of the model.

b

The name of another variable feature of the model.

Value

A tibble with one row per link: origin, step, from, link ("requires" or "excludes") and to. No rows if the two features do not exclude each other.

Examples

band <- vp_generate(vp_example("miband3.uvl"), or_graph = TRUE)
vp_explain_conflict(band, "TouchScreen", "BT40")
#> # A tibble: 3 × 5
#>   origin  step from        link     to    
#>    <int> <int> <chr>       <chr>    <chr> 
#> 1      1     1 TouchScreen requires BLEv42
#> 2      1     2 BLEv42      requires Screen
#> 3      1     3 Screen      excludes BT40