引言
对于系统工程师来说,设计用例图是一种极为常见的建模活动。用例图是一种黑盒视图,通过向读者传递一系列的用例以及相关的参与者,对系统对外提供的服务或系统具备的行为进行建模。在详细讨论SysML的用例图之前,我们先来了解一个非常关键的概念 - 用例。
什么是用例?
用例,英文为 “Use Case”,不同的书籍或论文资料对于 “用例” 有不同的定义,本文引用《Writing Effective Use Case》一书中关于用例的描述:
A use case captures a contract between the stakeholders of a system about its behavior. The use case describes the system’s behavior under various conditions as it responds to a request from one of the stakeholders, called the primary actor. The primary actor i