UML ternary association

后端 未结 4 874
隐瞒了意图╮
隐瞒了意图╮ 2021-01-04 13:44

I\'m currently having some trouble understanding ternary associations in UML. I get the binary ones, but I am unsure how multiplicity works on ternary. I\'m doing exercises

4条回答
  •  说谎
    说谎 (楼主)
    2021-01-04 14:19

    The model in the answer of Geert Bellekens is correct, but his explananation is confusing. The ternary association "Offering" with its multiplicities (cardinality constraints) cannot be explained by the statement

    For any given Offering there must be exactly one market, one department and one or more products

    but rather by stating that

  • a combination of department and product is linked to exactly one market
  • a combination of market and product is linked to exactly one department
提交回复
热议问题