Skip to contents

The level of each feature: the length of the longest chain of requirements that starts from it. Level 0: it needs nothing; level 1: it needs only features of level 0; and so on.

Usage

vp_levels(model)

Arguments

model

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

Value

A tibble with the columns feature and level, for every variable feature (the members of an atomic set share the level of their set).

Examples

band <- vp_generate(vp_example("miband3.uvl"), or_graph = TRUE)
vp_levels(band)
#> # A tibble: 11 × 2
#>    feature            level
#>    <chr>              <int>
#>  1 Screen                 0
#>  2 TouchScreen            2
#>  3 OLED                   0
#>  4 CapacityButton         0
#>  5 ContactlessPayment     3
#>  6 MovementFilter         2
#>  7 HeartRateSensor        0
#>  8 BLEv40                 1
#>  9 BLEv42                 1
#> 10 BT40                   0
#> 11 NFC                    3