正在生成
详细信息:
检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
如何配置自定义元素构造型 当在模型设计过程中,发现现有的模型图元无法满足设计表达的要求,此时需要添加一些新类型的图元放入到工具箱中来使用。用户可以点击“新建构造型”按钮,来创建新的构造型元素,如图所示。 按上图示例,新增一个示例构型元素,如图所示: 元素类型:此处选择的类型决定图元的外观样式和默认属性。
为“4+1 View”,初始化模板勾选“4+1视图”,模板语言选择“中文”。然后单击“确实”,完成模型工程的创建。 表1 模型工程基本信息参数表 项目信息 说明 所属项目 必填。默认归属当前有配置权限的项目下创建工程。 名称 必填。模型工程名称,最多128位,只能包含中英文、数字、下划线、中划线和空格。
交互概述图 交互概述图元素介绍如下表所示: 表1 交互概述图元素介绍 元素名 图标 含义 Action 动作是可执行的原子计算,它导致模型状态的改变和返回值。 Activity 活动是状态机内正在进行的非原子执行。 StructuredActivity 结构化活动是一个活动节点,可以将下级节点作为独立的活动组。
在“选择图类型”页面选择 “4+1 视图>逻辑视图>逻辑模型”,单击“下一步”进入“基本信息”页。 参考表1配置模型图的基本信息。 表1 新建模型图参数表 模型图信息 说明 名称 必填。最多128位,只能包含中英文、数字、下划线、中划线、中括号和空格。 描述 非必填。限制200字符。 父级节点
活动图 活动图对用户和系统遵循流程的行为进行建模,它们是流程图或工作流的一种,但是它们使用的形状略有不同,元素介绍如下表所示: 表1 活动图元素介绍 元素名 图标 含义 Action 动作是可执行的原子计算,它导致模型状态的改变和返回值。 Activity 活动是状态机内正在进行的非原子执行。
领域模型 领域模型描述业务域的概念及其关系,是立足于业务域的分析模型,它通过业务问题域的分析和建模,抽象出领域概念,建立统一的业务语言,从而指导后续的架构设计工作。元素介绍如下表所示: 表1 领域模型元素介绍 元素名 图标 含义 Domain 域,用于在架构表达、开发管理、对外介
架构信息树 架构信息树页签中可展示基于各种模型的架构方案规则,根据该类模型的元素关系集合生成一棵全量关系结构树。 架构方案规则的配置只有工程的管理员级别角色(带有配置资源操作权限的角色)才可配置,一般是产品的架构师来配置,制定产品的各模型中元素关系约束规则,例如逻辑模型的默认架构
Type 简单类型就是一个事先定义好了的基本数据类型,比如整数或者字符串。 Signal 对象之间异步通讯的声明。信号可以带有表示为属性的参数。 Association Node 关联节点。 Part 表示类或接口的运行时实例。 port 端口。 Interface Required
逻辑模型 逻辑模型描述系统的逻辑功能模块分解,将系统分解为相应的逻辑功能元素,并描述各逻辑功能元素之间的关系。元素介绍如下表所示: 表1 逻辑模型元素介绍 元素名 图标 含义 System 广义上,系统是指提供给市场,被客户注意、获取、使用或者消费,并能满足客户某种需求的载体,包