uml里的extend和include_UML依赖关系中的include和extend区别和联系

本文解释了UML中使用案例的extend和include关系。extend关系表示使用案例B可以在特定条件下扩展A的行为,而include关系则表明使用案例E会包含F的行为。举例来说,建房子(include)总是包含建房门,而安装通水管道(extend)则不是每个房子都必需的。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

‘Extend   –   An   extend   relationship   from   use   case   A   to   use   case   B   indicates   that   an

instance   of   use   case   B   may   be   augmented   (subject   to   specific   conditions   specified   in

the   extension)   by   the   behavior   specified   by   A.   The   behavior   is   inserted   at   the

location   defined   by   the   extension   point   in   B,   which   is   referenced   by   the   extend

relationship.

Include   –   An   include   relationship   from   use   case   E   to   use   case   F   indicates   that   an

instance   of   the   use   case   E   will   also   contain   the   behavior   as   specified   by   F.   The

behavior   is   included   at   the   location   which   defined   in   E.’

quoted from OMG

通俗来说,建一座房子   include   建一个房门(因为每个房子都会有房门;安装通水管道   extend   建一座房子(因为并不是每个房子都要建通水管道)

posted on 2008-01-28 15:21 Eric-1001c 阅读(2495) 评论(2)  编辑  收藏 所属分类: UML

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值