You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

关于UML 2.5.1中ConnectorEnd约束role_and_part_with_port的正确性疑问

UML 2.5.1规范中role_and_part_with_port约束的修正疑问

UML 2.5.1规范第271页对role_and_part_with_port约束的定义如下:

11.8.11.6 - Constraints
role_and_part_with_port
---
如果ConnectorEnd引用了partWithPort,那么role必须是由partWithPort的类型定义或继承的Port。
---
inv: partWithPort->notEmpty() implies
(role.oclIsKindOf(Port) and partWithPort.type.oclAsType(Namespace).member->includes(role))

经核查,partWithPort及其type均未继承自Namespace,而partWithPort的类型Property具备namespace成员特性。请问该约束是否应修改为如下形式?

inv: partWithPort->notEmpty() implies
(role.oclIsKindOf(Port) and partWithPort.namespace.member->includes(role))

内容的提问来源于stack exchange,提问作者Robert Hairgrove

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.19 00:47:34