I have the following situation/ model:
I have a Player class which has a Color and a Figure. Quite simple. But now I want to give the Figure an association to the Color:
Now I'm looking for a way to force the Figure to have the same Color as the Player. Perhaps I'm missing something very obvious, but I don't have any idea how to do it. Is there any OCL expression?
I'm using Magic Draw.