UML&OCL Modeling Languages


Practice (5b)

Consider the following diagram:

Express the following expressions in OCL:

  1. There is at least one skill named "S".
  2. The skills from a group must be found in at least one person from the group.
  3. Two persons from a group can not have the same skill(s).
  4. How to define an addSkill(s) operation in OCL ?