Is this mix of selected and left-out features possible?
Source:R/configuration.R
vp_partial_configuration.RdIs a mix of decisions possible: some features selected and others left out? The graphs say what each decision forces; the mix is impossible when it forces a feature both in and out.
Arguments
- model
A model, from
vp_generate()orvp_read(), in its complete or its minimal form.- selected
Features that the product must have.
- deselected
Features that the product must not have.
Value
A list with possible (TRUE or FALSE) and explanation: a tibble
with one row per feature that the decisions force both in and out, with
feature, in_because and out_because (the decision that forces it in,
and out: "your choice" when it is one of the decisions given, else the
decision that forces it, "A" for "A selected" and "not A" for "A left out")
and reason (the same, as a sentence). No rows when the mix is possible.
Examples
band <- vp_generate(vp_example("miband3.uvl"), or_graph = TRUE)
vp_partial_configuration(
band,
selected = "TouchScreen",
deselected = "HeartRateSensor"
)
#> $possible
#> [1] FALSE
#>
#> $explanation
#> # A tibble: 3 × 4
#> feature in_because out_because reason
#> <chr> <chr> <chr> <chr>
#> 1 TouchScreen your choice not HeartRateSensor TouchScreen would be both in …
#> 2 HeartRateSensor TouchScreen your choice HeartRateSensor would be both…
#> 3 BLEv42 TouchScreen not HeartRateSensor BLEv42 would be both in (forc…
#>