Skip to contents

In which order the teams should decide. A team waits for another when one of its features requires a feature of the other: the requirement is decided first, as in vp_rounds(). Teams that wait for each other (directly or through others) must decide together. Conflicts and at-least-one lines between teams have no right order: whoever decides first narrows what the other can choose, so those teams must agree.

Usage

vp_team_order(model, teams)

Arguments

model

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

teams

The team of each feature: a tibble with the columns feature and team, or a named character vector (feature = team).

Value

A tibble with team, round (round 1 waits for nobody), waits_for, decide_together_with and must_agree_with (team names separated by commas; "" for none).

Examples

band <- vp_generate(vp_example("miband3.uvl"), or_graph = TRUE)
teams <- c(
  Screen = "display",
  TouchScreen = "display",
  OLED = "display",
  CapacityButton = "display",
  ContactlessPayment = "payments",
  NFC = "payments",
  MovementFilter = "sensors",
  HeartRateSensor = "sensors",
  BLEv40 = "radio",
  BLEv42 = "radio",
  BT40 = "radio"
)
vp_team_order(band, teams)
#> # A tibble: 4 × 5
#>   team     round waits_for                 decide_together_with must_agree_with 
#>   <chr>    <int> <chr>                     <chr>                <chr>           
#> 1 display      1 ""                        "radio, sensors"     radio, sensors  
#> 2 radio        1 ""                        "display, sensors"   display, paymen…
#> 3 sensors      1 ""                        "display, radio"     display, paymen…
#> 4 payments     2 "display, radio, sensors" ""                   radio, sensors