如何将用例泛化呈现到 class 图中?
How to present use-case generalization into class diagram?
我有一个用例图,其中包括一个父用例和三个子用例,它们共享父的共同行为,但每个子用例在其 own.I 中添加了更多内容将用例图转换为 class diagram.My 问题是:
Is it necessary to present generalization into the class diagram if the use-cases diagram include use-cases that uses inheritance?
Can I do the class diagram without the inheritance ?
Is it necessary to present generalization into the class diagram if the use-cases diagram include use-cases that uses inheritance?
需要 : 不需要
UC的可能继承和[=23=之间的可能继承之间没有link,原因很简单,UC和[=23=之间通常没有link ]
Can I do the class diagram without the inheritance ?
是的,你可以 类 没有继承,但同样没有 link 与 UCs
我同意布鲁诺的回答。尽管如此,我还是想提一个特例,以供记录。
在某些方法论背景下,例如 Unified Process, there is a practice to derive in the analysis the classes from the use case by using the Entity-Control-Boundary 方法。在这种情况下:
- 为每个用例创建一个控件class
- 为参与者和用例之间的每个关联创建一个边界 class。
在设计过程中,这些初始分析 class 然后被重构。
当使用 ECB 方法时,用例之间的泛化关系将在相应的控件 classes 之间重现。这避免了丢失分析中已经确定的知识,并在设计中利用,
这种特殊关系,而不是浪费时间重新发现它。
这不是 UML,但 ECB 方法是由 UML 的创始人开发的,因此值得了解一下。
我有一个用例图,其中包括一个父用例和三个子用例,它们共享父的共同行为,但每个子用例在其 own.I 中添加了更多内容将用例图转换为 class diagram.My 问题是:
Is it necessary to present generalization into the class diagram if the use-cases diagram include use-cases that uses inheritance?
Can I do the class diagram without the inheritance ?
Is it necessary to present generalization into the class diagram if the use-cases diagram include use-cases that uses inheritance?
需要 : 不需要
UC的可能继承和[=23=之间的可能继承之间没有link,原因很简单,UC和[=23=之间通常没有link ]
Can I do the class diagram without the inheritance ?
是的,你可以 类 没有继承,但同样没有 link 与 UCs
我同意布鲁诺的回答。尽管如此,我还是想提一个特例,以供记录。
在某些方法论背景下,例如 Unified Process, there is a practice to derive in the analysis the classes from the use case by using the Entity-Control-Boundary 方法。在这种情况下:
- 为每个用例创建一个控件class
- 为参与者和用例之间的每个关联创建一个边界 class。
在设计过程中,这些初始分析 class 然后被重构。
当使用 ECB 方法时,用例之间的泛化关系将在相应的控件 classes 之间重现。这避免了丢失分析中已经确定的知识,并在设计中利用, 这种特殊关系,而不是浪费时间重新发现它。
这不是 UML,但 ECB 方法是由 UML 的创始人开发的,因此值得了解一下。