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

被折叠的 条评论
为什么被折叠?



