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.
Arguments
- model
A model, from
vp_generate()orvp_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).
See also
Other hierarchy:
vp_atomic_sets(),
vp_chains(),
vp_common_dependants(),
vp_common_requirements(),
vp_depth(),
vp_downset(),
vp_false_optional(),
vp_feature_tree(),
vp_foundations(),
vp_implied_requires(),
vp_largest_free_set(),
vp_largest_unrelated_set(),
vp_leaves(),
vp_longest_chain(),
vp_longest_decision_chain(),
vp_redundant_candidates(),
vp_skeleton(),
vp_tree_agreement(),
vp_upset(),
vp_width()
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