Skip to contents

The primitive conflicts written as few "at most one of these" groups: a greedy cover of the primitive conflicts by groups of features that all exclude one another. Each group could be one declaration of the model ("at most one of"), and together they state every primitive conflict, so every conflict of the model follows from them and the requirements. The number of groups says how many such declarations a modeller would need.

Usage

vp_conflict_cover(model)

Arguments

model

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

Value

A tibble with group, size, feature and primitive_conflicts (how many of them the group states).

Examples

band <- vp_generate(vp_example("miband3.uvl"), or_graph = TRUE)
vp_conflict_cover(band)
#> # A tibble: 6 × 4
#>   group  size feature         primitive_conflicts
#>   <int> <int> <chr>                         <int>
#> 1     1     2 BT40                              1
#> 2     1     2 Screen                            1
#> 3     2     2 HeartRateSensor                   1
#> 4     2     2 MovementFilter                    1
#> 5     3     2 BLEv40                            1
#> 6     3     2 BLEv42                            1