Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这个模型的正确用途是什么.. 1. 或 2. ?...或者应该有 1. extends 而不是 include ?
我猜#1中的UC应该阅读“项目选择”而不是部分。
您的两种设计都以一种或另一种方式出错。“项目选择”不是用例。它不会为 Actor 带来任何价值(至少我无法想象)。因此,您正在尝试将 CRUD 放入用例中。重新考虑 Actor 期望的实际值。
现在包含/扩展:尽可能避免它们。一旦你开始分解用例,你就错了,如果你的用例图类似于蜘蛛网,那么你的设计就会被破坏。用例是综合的,而不是分析的。虽然第一个尝试构建一个完整的图片,但后者是您在代码设计中需要将其切割成可管理的部分。