本文主要介绍了统一建模语言(UML)在模型驱动架构(MDA)中的作用和相关规范。强调了UML在MDA中的重要地位,特别是UML 2.0版本的发布和改进。同时,也提到了OMG成员和非成员如何获取UML相关文档,以及为了支持MDA而定制的UML规范。
Each MDA-based specification has, as its normative base, two levels of models: a Platform-Independent Model (PIM), and one or more Platform-Specific Models (PSM). For many specifications, these will be defined in UML, making OMG's standard modeling language a foundation of the MDA. (Use of UML, although common, is not a requirement; MOF is the mandatory modeling foundation for MDA.)
每个基于MDA的规范都有两个层次的模型作为其规范基础:平台独立模型(PIM)和一个或多个平台特定模型(PSM)。对于许多规范,这些将在UML中定义,使OMG的标准建模语言成为MDA的基础。(虽然使用UML很常见,但并不是必需的;MOF是MDA的强制性建模基础。)
UML 2.0 is now the current official version. Tailored to MDA requirements, this new release improves Business, Architectural, Structural, and Behavioral modeling and is being done in four parts. The UML 2.0 Superstructure Specification has been completed, and is available for free download here. The other three parts linked here are finishing up OMG's finalization maintenance process to fix inconsistencies and resolve ambiguities. The maintenance process is not allowed to make major changes, nor to add or delete features or functionality, so you can get a good idea of what the official specification will look like from these documents, even though they don't reflect the final, official version.
UML 2.0 现在是当前的官方版本,针对 MDA 需求进行了调整,此新版本改进了业务、架构、结构和行为建模,并分为四个部分进行。UML 2.0 超级结构规范已经完成,可在此免费下载。其他三个部分正在通过 OMG 的最终维护流程来修正不一致性和解决歧义。维护过程不允许进行重大更改,也不允许添加或删除功能,因此从这些文档中您可以大致了解官方规范的样子,尽管它们并不代表最终的官方版本。
OMG members can download more recent documents than the ones listed here by following relevant links from the Work in Progress page, which requires an OMG username and password; non-members can download somewhat older public documents for:
- UML 2.0 Infrastructure
- UML 2.0 OCL
- UML 2.0 Diagram Interchange
OMG成员可以通过从“进行中”页面的相关链接下载比这里列出的更新的文档,这需要OMG用户名和密码;非成员可以下载稍微旧一些的公共文档,包括:
- UML 2.0 基础设施
- UML 2.0 OCL
- UML 2.0 图表交换
OMG maintains a public UML Resource and Information Page.
OMG 维护一个公共的 UML 资源和信息页面。
https://www.uml.org/
Several additional specifications help tailor the UML to support MDA:
- A human-usable Textual Notation enables a new class of model-editing programs and enhances the way models (if they're built using a MOF-based modeling language, of course) can be manipulated. Notation elements map one-to-one to the more verbose XMI, but the syntax of the HUTN™ is much more human-friendly.
- A standard Software & Systems Process Engineering Metamodel™ (SPEM™) defines a framework for describing methodologies in a standard way. It does not standardize any particular methodology, but enhances interoperability from one methodology to another.
一些额外的规范有助于量身定制UML以支持MDA:
- 一些额外的规范有助于将UML定制以支持MDA: 一种人类可用的文本符号(Textual Notation)能够启用一类新的模型编辑程序,并增强操作模型的方式(当然,前提是这些模型是使用基于MOF的建模语言构建的)。符号元素与更为冗长的XMI一一对应,但HUTN™的语法对人类更加友好。
- 标准的软件与系统过程工程元模型™(SPEM™)定义了一个用于以标准方式描述方法论的框架。它并不标准化任何特定的方法论,而是增强了不同方法论之间的互操作性。
解读:
- UML在MDA中的地位:
- 每个基于MDA的规范都有两个层次的模型作为其规范基础:平台无关模型(PIM)和一个或多个平台特定模型(PSM)。
- 对于许多规范来说,这些模型将使用UML来定义,使OMG的标准建模语言成为MDA的基础。虽然UML的使用很常见,但它不是必需的;MOF是MDA的强制建模基础。
- UML 2.0版本:
- UML 2.0是当前官方版本,针对MDA要求进行了改进,包括业务、架构、结构和行为建模。
- UML 2.0分为四个部分,其中超结构规范已完成并可免费下载。
- 其他三个部分正在完成OMG的最终维护过程,以解决不一致性和消除歧义。
- UML 2.0的维护过程与文档获取:
- 维护过程不允许进行重大更改,也不允许添加或删除功能,因此从这些文档中可以获得官方规范的大致情况。
- OMG成员可以通过“工作进展”页面下载比列出的文档更新的文档,这需要OMG用户名和密码。
- 非成员可以下载较旧的公共文档,包括UML 2.0基础设施、UML 2.0 OCL和UML 2.0图表交换。
- OMG的UML资源与信息页面:
- OMG维护了一个公共的UML资源与信息页面。
- UML的定制规范以支持MDA:
- 人类可使用的文本表示法(HUTN™)启用了一类新的模型编辑程序,并改进了使用基于MOF的建模语言构建的模型的操纵方式。文本表示法元素与更冗长的XMI一一对应,但HUTN™的语法对人类更加友好。
- 软件与系统过程工程元模型™(SPEM™)定义了一个以标准方式描述方法论的框架。它并不标准化任何特定的方法论,但增强了不同方法论之间的互操作性。