UML&OCL Modeling Languages


Exercises

  1. Graphical elements

    • Model pictures composed with a set of points that can me moved, and that has two operations to compute the union/intersection with another picture (the result being a picture).
    • Give an illustration with a communication diagram explaining the previous operations.
  2. Java (meta)model

    • Take a look at the Class class and represent it with operation to: instanciate Object, get Fields and/or Methods.
    • Extend the preceding diagram with the mentionned classes and their most interesting operation; e.g. how to invoke a Method onto an Object ?

11 - 11