简体   繁体   中英

UML Use Case Diagram: Do generalisation children inherit include/extends from parent?

Given the following scenario:

[...] The refueling is terminated either when the maximal permissible amount of petrol is dispensed, or when the customer decides to put the hose back into the mounting plate. The amout owed for the petrol dispensed is charged to the customer's credit card account when the refueling process has finished. [...]

Now while trying to model this in a Use Case Diagram I came up with this:

FOO

My main question is: Do child use cases inherit include and extend relationships? Is this valid/meaningful?

You are wrong here (like in the other question). Terminate is no Use Case (at best it's an anti-use case). The same goes for the other bubbles except for bill credit card . The (most likely) missing UC is Fuel car .

Generally: do NOT use generalization with UCs. It's an awful bad idea. An added value is unique (remember: it is related to unique sales proposition). You can (in 99.9% not generalize that, except you have a franchise, which is the only example that would work).

And again: Read Bittner/Spence to understand why UCs are about added value and not about functions.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM