正在生成
详细信息:
检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
4.4构建元素与代码元素需存在build from关系 详细描述 在构建模型图上,构建元素与从代码模型中引用过来的代码元素如果存在连线关系,必须为build from的构建关系,且方向指向得从构建元素指向代码元素。 检查范围 当前模型工程中的所有符合定义规则的构建元素(定义规则:工程设置>构造型下,绑定到4+1视图
Access 访问依赖关系用一个从客户包指向提供者包的虚箭头表示。 Merge 合并连接器,定义了源包元素与目标包同名元素之间的泛化关系。源包元素的定义被扩展来包含目标包元素定义。当源包元素与目标包内没有同名元素时,目标包元素的定义不受影响。 Import 用虚线箭头从得到访问权限的包指向提供者所在的包。
逻辑视图 开发视图 部署视图 运行视图 用例视图 架构信息 架构检查 02 入门 从0到1,快速学习架构建模知识。 快速入门 创建模型工程 创建模型图 创建元素 创建连线关系 04 使用UML视图 统一建模语言UML。 UML视图 概述 类图 用例图 顺序图 活动图 部署图 组件图 状态机图
系。 表1 运行视图 模型类别 描述 运行模型(可选) 运行模型描述系统运行期间的关系,从进程的维度描述系统运行时的交互过程和关键数据流。 运行模型-顺序图(必选) 运行模型-顺序图模型是从逻辑模型中的架构对象维度描述系统运行时的交互过程以及关键的数据流。 运行模型-活动图(可选)
如何配置关联模型工程 想要引用“关联模型工程”中定义过的模块,首先需要申请与目标工程进行关联,发起申请后,由对应空间的管理员权限的人员在“关联我的”中操作栏通过审核。 空间关联模型工程配置解决用户要跨空间引用模块的问题,需要配置的用户拥有管理员权限,关联有权限的模型空间时可以直接
如何配置架构规则方案 架构配置,只有管理员可以配置,可设置模型工程视图类型,以及配置对应视图类型下面的架构图元关系和连线规则。 每种模型图是可以配置架构层级关系,下面以4+1视图下逻辑视图中的逻辑模型为例作简单说明,其它类型的模型图配置方法可参考此处,如图所示。 4+1视图中逻辑
如何配置自定义元素构造型 当在模型设计过程中,发现现有的模型图元无法满足设计表达的要求,此时需要添加一些新类型的图元放入到工具箱中来使用。用户可以点击“新建构造型”按钮,来创建新的构造型元素,如图所示。 按上图示例,新增一个示例构型元素,如图所示: 元素类型:此处选择的类型决定图元的外观样式和默认属性。
源端寻源:一条消息线M1从生命线L1上出发。算法规则与目标端寻源类似,差异在于源端不以当前M1为出发点,而是以M1的上一条消息线LM1为出发点,并且不受异步与返回消息线的限制。 找到当前消息线M1的上一条消息LM1(注意,是位置在其上的第一条消息线),从LM1出发,如果LM1的目
1交付模型的元素要与指定的交付模型层次结构保持一致 详细描述 在交付模型中创建交付元素,交付元素在架构树中与上下级元素的关系层级结构要与交付模型架构方案配置定义的层次结构一致,即该交付元素与上层父级元素、下层子级元素的父子关系(也称上下层级关系)、以及它们之间的连线关系和方向指向,都要与层级规则中定义的保持一致。
1技术模型的元素要与指定的技术模型层次结构保持一致 详细描述 在技术模型中创建技术元素,技术元素在架构树中与上下级元素的关系层级结构要与技术模型架构方案配置定义的层次结构一致,即该技术元素与上层父级元素、下层子级元素的父子关系(也称上下层级关系)、以及它们之间的连线关系和方向指向,都要与层级规则中定义的保持一致。
时间顺序排列的。顺序图中显示的是参与交互的对象及其对象之间消息交互的顺序。 元素名 图标 含义 Lifeline 生命线,在顺序图中表示为从对象图标向下延伸的一条虚线,表示对象存在的时间。 Boundary Lifeline 边界生命线,表示一个系统的边界,或者系统中的一个软件元
Usage 使用,是一种使用的关系。表明一个模块在运行的时候,需要使用另外一个模块。 Build From 构建关系,表示当前构建结果从某一代码目录或者代码文件构建而来,仅适于构建元素与代码元素之间的关系,连线方向由构建元素指向代码元素。 前提条件 因为代码模型主要是描述创建
当架构树上没有标红元素,就没有2.3.1的检查错误结果。 错误示例 场景一:方案中没有配置子节点,但是在画图设计中绘制了子节点。 File画在Repo Grp下是子节点,但方案中Repo Grp没有配置File为子节点。 架构信息树中报红: 架构检查结果: 2.3.2代码模型不能存在游离的代码模型元素
作或者属性。您可以根据需求绘制消息线,绘制消息线后,也可以提升/降低消息线层级。 绘制消息线 您可以通过如下方式绘制生命线: 选择生命线,从生命线的一端小三角单击拉线至另一个生命线上,选择消息类型。消息类型介绍请参见消息线连线规则。 选择连线按F2或者右键单击消息线选择“编辑”,可以编辑消息线名称。
在创建生命线前,需要先考虑哪种类型的生命线能更好地表示你所要表达的对象。您可以通过以下三种方式创建生命线。 工具画板中选择一个生命线拖拽至画布中。 从工程树中其它模型视图中的元素拖拽至画布中生成对应生命线,您可以使用Link方式引用。 生命线也支持由创建消息线(Create Message)触发创建,其位置通常低于别的生命线。
架构信息树页签中可展示基于各种模型的架构方案规则,根据该类模型的元素关系集合生成一棵全量关系结构树。 架构方案规则的配置只有工程的管理员级别角色(带有配置资源操作权限的角色)才可配置,一般是产品的架构师来配置,制定产品的各模型中元素关系约束规则,例如逻辑模型的默认架构方案规则,方案中约束System下
续自己的活动,不等待接受者返回消息或者控制。异步消息的接收者和发送者是并发工作的。 Reply Message 返回消息连线,返回消息表示从过程调用返回,一般与Message配套使用。 Self Message 自消息连线,表示方法的自身调用或者一个对象内的一个方法调用另外一个方法。
用连线表示;在上下文模型中需要定义外部角色、交互接口、外部系统、系统,其中系统如果在逻辑模型中已经定义过,则在上下文模型中不能再重复定义,从逻辑模型中引用至上下文模型中即可。 父主题: 用例视图
步骤。 Deep History 历史状态可以记忆浅历史和深历史。深历史状态记忆组成状态中更深的嵌套层次的状态。要记忆深状态,转换必须直接从深状态中转出。 Shallow History 浅历史状态保存并激活与历史状态在同一个嵌套层次上的状态。 EntryPoint 进入某一状态时执行的动作
状态机中的一个位置,两个或多个可选的控制路径在此汇合或"无分支"。 Send 发送者对象生成一个信号实例并把它传送到接收者对象以传送信息。 Receive 接收就是处理从发送者传送过来的消息实例。 Partition 分区元素用于逻辑组织元素。 Partition 分区元素用于逻辑组织元素。 Initial 用来指明其默认起始位置的伪状态。