I want to express the relationship between object diagrams and class diagrams in terms of the MOF Layer Model.
As an Object Diagram (OD) is an instance of a Class Diagram (CD), I conclude that an OD must be on a Layer below a CD (e.g. OD in M0 and CD in M1).
What confuses me is that both, Object Diagrams and Class Diagrams seem to be in the M1 layer as they're both instances of the UML-metamodel which is in the M2-layer.
What am I missing here?
AFAIK for the purpose of diagram interchange in a
MOF
container the diagram relationships are not defined (nor needed) and thus do not impose any layer constraints.This is where I drew my conclusion from:
1.
2.
3.