What is the difference between a domain class diag

2019-01-08 20:40发布

Can someone briefly explain the difference between a domain class diagram and a design class diagram?

I found a explanation on Yahoo answers, but I find it quite confusing.

标签: uml modeling
3条回答
等我变得足够好
2楼-- · 2019-01-08 21:08

A domain model is called conceptual model in database modeling, while a design model is called logical model.

These distinctions are also used in model-driven development, where we have a succession of three types of models:

  1. (solution-independent) domain models resulting from domain/requirements engineering in the system analysis, or inception, phase of a development project
  2. (platform-independent) design models resulting from the system design activities in the elaboration phase
  3. (platform-specific) implementation models, which are derived from a design model

While system modeling includes both information and process modeling, you seem to be concerned with information modeling only. Here, we can use the terms "domain class diagram" and "design class diagram" for the conceptual information model and the information design model made in the form of UML class diagrams.

[The following text/diagrams have been added later, in Sep 2016]

The one-to-many relationships between conceptual models and design models, and between design models and implementation models are illustrated in the following Figure:

The one-to-many relationships in model refinement

As an example that illustrates how the derivation chain from concept via design to implementation works, consider the following model of a people/Person concept/class:

From concept via design to implementation

Domain models are solution-independent descriptions of a problem domain produced in the analysis phase of a software engineering project. The term "conceptual model" is often used as a synonym of "domain model". A domain model may include both descriptions of the domain’s state structure (in conceptual information models) and descriptions of its processes (in conceptual process models). They are solution-independent, or ‘computation-independent’, in the sense that they are not concerned with making any system design choices or with other computational issues. Rather, they focus on the perspective and language of the subject matter experts for the domain under consideration.

In the design phase, first a platform-independent design model, as a general computational solution to the given software engineering problem, is developed on the basis of the domain model. The same domain model can potentially be used to produce a number of (even radically) different design models representing different design choices. Then, by taking into consideration a number of implementation issues ranging from architectural styles, nonfunctional quality criteria to be maximized (e.g., performance, adaptability) and target technology platforms, one or more platform-specific implementation models are derived from the design model.

See also http://web-engineering.info/book/WebApp1/ch05s03.html

查看更多
叼着烟拽天下
3楼-- · 2019-01-08 21:11

If your focus is on the diagram itself, there are two big differences between diagrams about domain model and diagrams about design model: (At least this is what the Larman book Applying UML and Patterns says)

  1. In UML diagrams which represent domain model, you cannot use arrows. All classes are interlinked with a line, which signifies "relation", and you should use text annotations over the lines to illustrate what relation it exactly is. While in design models, you have to use arrows, all types of arrows: association, inheritance... etc

  2. In design model you have to specify the type of properties and methods etc, while in domain model you only have to write them without anything additional(just like in real world). For example, value: int in design model will be written as value in domain model.

Reference: Applying UML and Patterns 3rd Edition Chapter 9 and 16.

查看更多
虎瘦雄心在
4楼-- · 2019-01-08 21:16

UML has NO such diagrams

Enterprise Architect has Domain Model - look at wiki.

As for "class design diagram", it is simply unknown neither by EA, or by VP UML, or UML itself. I think, the usual class diagram form the UML is meant.

查看更多
登录 后发表回答