I specified a model, by writing it down:
A consists of B. Each B has a name and points. In B there is C assigned if its points are not fulfilled.
How to translate this example into emf?
UPDATE
Ok I tried a solution:
A is a class and is connected with B which has as an attribute a name and points. However, I really do not have an idea right now how to handle C?
Between A and B you definitely have an association. Since you emphasize the "consists of", it might be it's a 1:1 composite aggregate (i.e. the lifetimes of A and B are coupled).
B has an association to C. Here it sounds like a 0:1 multiplicity. The condition "if .. fulfilled" can't be captured in the static class diagram, since it describes the dynamic behaviour of the system (hence the lower bound 0 above, so that you can use null
). It isn't directly clear if points are objects (reference) or a number (attribute).
(source: yuml.me)
That's how I'd do it (via Yuml.me).
As an alternative (depending on the rest of the model), you might find that B actually extends A.