For example, let's consider the following UML diagram:
The model has to be valid only if for all of the instances of Block1
, the instance of Block1::unit_of_press
is the same instance of the tagged value unit
of the actual type of Block1::press
Is it possible to express such a constraint in OCL?