【问题标题】:drawing UML Use case diagram绘制 UML 用例图
【发布时间】:2014-02-09 20:41:33
【问题描述】:

我要为以下场景绘制 uml 用例图:

In the university to set up a new coffee management system. These are the (informal) requirements:

1. A coffee machine dispenses coffee at the press of a button.
2. There are different coffee flavors (espresso, cappuccino, or latte macchiato) with different
prices.
3. Every user has an account on the coffee management system.
4. Every user logs on to the system using some identification (a password or picture).
5. Users choose the coffees they had (or will have) and mark them as “dispensed”.
6. The price for the coffee is automatically deducted from their account.
7. A special user (the “administrator”) can recharge user’s accounts.

如何为上述场景创建一个用例,包括备选方案和例外情况。

我尝试绘制用例图,请如果有人可以检查它是否正确。提前致谢。

【问题讨论】:

    标签: uml use-case


    【解决方案1】:

    我在这里与一个 UML 启动器在另一个系统上进行了对话。我认为,discussion 可能对您有用。

    我愿意:

    • type password 更改为login。扔掉verify user
    • 添加create loginset passwordchange passworddelete login - 更多管理员用例。
    • login 和所有这些加入Account management 矩形= 一个子系统。
    • 没有地方说用户应该是学生。不要无故限制实体。
    • Add/Remove/Edit SortsSet/Edit Prices 用例添加到管理员。将他们加入Assortiment 子系统。
    • 为用户添加View Assortiment
    • 将泛化箭头从管理员放到用户。管理员也可以使用系统,但需要登录。
    • 给用户添加look account state
    • 你在哪里有这个“将它们标记为“已分配””,你如何想象它?

    • 使用一些工具进行编辑。在每个版本中重新绘制图表需要很长时间。 (您可以使用 VP-UML 的免费变体,它并不理想,但练习此您正在学习三种广泛使用的专有工具之一)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-10-20
      • 2023-04-02
      • 2020-03-23
      • 2023-03-04
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多