对象图与 MOF 层术语中的 Class 图之间的关系

Relation between a Object Diagram and a Class Digram in MOF Layer terms

我想用 MOF Layer Model.

来表达对象图和 class 图之间的关系

由于对象图 (OD) 是 Class 图 (CD) 的实例,因此我得出结论,OD 必须位于 CD 下方的层上(例如,OD 在 M0 中,CD 在 M1 中) .

让我感到困惑的是,对象图和 Class 图似乎都在 M1 层中,因为它们都是 M2 层中的 UML 元模型的实例。

我在这里错过了什么?

AFAIK 为了在 MOF 容器中交换图表,图表 关系未定义 (也不需要)因此不强加任何层约束。

这是我得出结论的地方:

1.

uml-diagrams.org: Class and Object Diagrams Overview says:

...Object diagram could be considered as instance level class diagram which shows instance specifications of classes and interfaces (objects), slots with value specifications, and links (instances of association)...

2.

uml-diagrams.org: Object Diagram says:

Object diagram was defined in now obsolete UML 1.4.2 Specification as...

UML 2.4 specification simply provides no definition of object diagram...

Note, that UML 2.5 standard hierarchy of diagrams (see UML 2.5 diagrams overview), shows class diagrams and object diagrams as completely unrelated...

...I really have a headache with all this mess-up… OMG please fix it!

3.

omg.org: Diagram Definition, Version 1.0, July 2012 says:

Figure 7.2 - Example of Diagram Definition Architecture For UML

9.3.1 Diagram Interchange → Classifier Descriptions → Diagram [Class]

Diagram is an abstract container of a graph of diagram elements...

...It can also be owned by elements of the abstract syntax model, or by no element at all...

...a diagram may reference a model element from an abstract syntax model, in which case the whole diagram is considered a depiction of that element (e.g., an activity diagram is a depiction of a UML activity).

Alternatively, a diagram without such a reference is simply a layout container for its diagram elements (e.g., a class diagram is a container for UML class shapes and edges)