正在生成
详细信息:
检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Diagram Gate使用 图表门是一种简单的图形方式,用于指示可以将消息传输到交互片段和从交互片段传出的点。可能需要一个片段来接收或传递消息。在内部,有序消息反映了这一要求,并在片段帧的边界上指示了门。任何与此内部消息“同步”的外部消息必须适当地对应。可以出现在交互图(顺序,
足设计表达的要求,此时需要添加一些新类型的图元放入到工具箱中来使用。用户可以点击“新建构造型”按钮,来创建新的构造型元素,如图所示。 按上图示例,新增一个示例构型元素,如图所示: 元素类型:此处选择的类型决定图元的外观样式和默认属性。 继承构造型:继承选择的目标类型的属性信息。
如何创建连线关系 以较常见的用例图说明,其它图的连线和生成图元的操作类同。 快速创建图元:从工具箱中拖动图元移动到图中。 快速连线两种方式: 方式一:直接从图元往图元上连。连线操作技巧:鼠标移到图元上或者选中图元,四边出现小三角图标,点击小三角往另一个图元上拉线,停靠目标图元边上
点击操作栏“新增层级”。 选择逻辑模型下的System元素为一级节点,一级节点不需要配置关联的父级节点和关系,只需要配置显示是否嵌套,如下所示。 添加第二层级构造型元素时,就需要配置二级元素与一级元素的父子关系连线的类型以及指向关系。 如图所示的Subsystem中的关联父级列;三级及更深层级可以依次参照此方式配置,不再赘述。
按关联工程分类显示从关联工程中引用到当前工程中的元素,打开元素在当前工程中的所在图列表,从列表中单击打开对应的图。 定位到工程树 打开关联的模型工程树,定位到元素所在关联工程树中的位置。 关联模型工程 关联模型工程 引用关联工程的模块,切换关联的模型工程及分支,从关联的工程树拖元素节点到图中引用。
在左侧工程树打开模型工程根节点Test1下的“逻辑视图>逻辑模型”,单击右侧更多操作或右键打开包菜单,单击“新增图”。 在“选择图类型”页面选择 “4+1 视图>逻辑视图>逻辑模型”,单击“下一步”进入“基本信息”页。 参考表1配置模型图的基本信息。 表1 新建模型图参数表 模型图信息
Object 封装了状态和行为的具有良好定义界面和身份的离散实体,即对象实例。 Decision 是状态机中的一个元素,在它当中一个独立的触发可能导致多个可能结果,每个结果有它自己的监护条件。 Merge 状态机中的一个位置,两个或多个可选的控制路径在此汇合或"无分支"。 Send
期交互的视图,主要解决系统运行期交互,描述各可执行交付件在运行期的交互关系。 表1 运行视图 模型类别 描述 运行模型(可选) 运行模型描述系统运行期间的关系,从进程的维度描述系统运行时的交互过程和关键数据流。 运行模型-顺序图(必选) 运行模型-顺序图模型是从逻辑模型中的架构对
(控制流)在交互中,控制的后继轨迹之间的关系。 Object Flow (对象流)各种控制流表示了对象间的关系、对象和产生它(作输出)或使用它(作输入)的操作或转换间的关系。 Interrupt Flow 中断流是用于定义异常处理程序和可中断活动区域的连接器的两个UML概念的连接。 交互概述图示例,如下图所示:
聚合,是整体与部分的关系,且部分可以离开整体而单独存在。 Realization 实现,是一种类与接口的关系,表示类是接口所有特征和行为的实现。 Dependency 依赖,是一种使用的关系,即一个类的实现需要另一个类的协助。 Usage 使用,是一种使用的关系。表明一个模块在运行的时候,需要使用另外一个模块。
引用到代码模型中的代码元素(包含关联空间中的引用的代码元素); 如何检查 查询基于代码模型图构出的代码模型架构树,找出与架构方案不匹配(标红)的元素。 正确示例 架构层级规则示例: 关联父级:配置的是当前层级元素与上一层级的元素之间的连线类型和父子关系指向。 嵌套:是否支持当前类型的元素与同类型元素建立关系。 嵌套
组合,是整体与部分的关系,但部分不能离开整体而单独存在。 Aggregation 聚合,是整体与部分的关系,且部分可以离开整体而单独存在。 CommunicationPath 通信路径。定义两个部署目标能够交换信号和消息的通信路径。 前提条件 部署模型描述产品打包交付件的部署场景,所以
组件图显示了复杂软件系统中的各个组件如何相互关联以及如何使用接口进行通信。它们不用于更简单或更直接的系统,元素介绍如下表所示: 表1 组件图元素介绍 元素名 图标 含义 Class 是对象的集合,展示了对象的结构以及与系统的交互行为。 Interface 接口,可以是单个接口,也可以是抽象的一组接口的组合。
在交付模型图上创建出来的交付元素; 引用到交付模型中的交付元素(包含关联空间中的引用的交付元素); 如何检查 查询基于模型图构出的交付模型架构树,找出与架构方案不匹配(标红)的元素 正确示例 架构层级规则示例: 关联父级:配置的是当前层级元素与上一层级的元素之间的连线类型和父子关系指向。
中定义的保持一致。 检查范围 当前模型工程中的所有符合定义规则的技术元素(定义规则:工程设置>构造型下,绑定到4+1视图 : 技术模型的基础构造型与自定义构造型元素才认定为技术元素)。 在技术模型图上创建出来的技术元素; 引用到技术模型中的技术元素(包含关联空间中的引用的技术元素)。
中定义的保持一致。 检查范围 当前模型工程中的所有符合定义规则的构建元素(定义规则:工程设置>构造型下,绑定到4+1视图 : 构建模型的基础构造型与自定义构造型元素才认定为构建元素)。 在构建模型图上创建出来的构建元素; 引用到构建模型中的构建元素(包含关联空间中的引用的构建元素);
实现,是一种类与接口的关系,表示类是接口所有特征和行为的实现。 Dependency 依赖,是一种使用的关系,即一个类的实现需要另一个类的协助。 Usage 使用,是一种使用的关系。表明一个模块在运行的时候,需要使用另外一个模块。 Instantiate 实例化,声明用一个类的方法创建了另一个类的实例。
Dependency 依赖,是一种使用的关系,即一个类的实现需要另一个类的协助。 Association 关联,是一种拥有的关系,它使一个类知道另一个类的属性和方法。 对象图示例,如下图所示: 示例首先显示简单的类图上连接的两个类元素。 上面的类被实例化作为下面对象图中的对象。在此模型中有的两个
根据建模规范限制,建模的连线不能独立存在于图中,两端必须是连接在元素上的,因此不允许消息线直接拖拽至画布上。且绘制顺序图时,必须保证图的类型为顺序图,否则可能导致无法绘制对应消息线。具体请参见如何查看和修改模型图类型。 消息线介绍 顺序图用消息线描绘元素之间的工作流或者活动。软件模
“UML”:又称统一建模语言或标准建模语言,是一个支持模型化和软件系统开发的图形化语言,为软件开发的所有阶段提供模型化和可视化支持。 “4+1 View”:是一组相关联模型的集合,从不同的视角,反映不同利益干系人的关注点。通过逻辑、开发、部署、运行4个典型视角描述系统的各个切面,以用例串接和验证各切面设计。 初始化模板