Meaningless Drivel is fun!*
The moose likes OO, Patterns, UML and Refactoring and the fly likes A question about uml use cases , should i use include or extends ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "A question about uml use cases , should i use include or extends ?" Watch "A question about uml use cases , should i use include or extends ?" New topic
Author

A question about uml use cases , should i use include or extends ?

raminaa niilian
Ranch Hand

Joined: Jul 14, 2005
Posts: 551
Hi
Thank you for reading my post.
here is scenario :
I have a system administrator Actor . one of its job is to configure system.
configuring system contains several configuration jobs like
configuring start-up parameter , schedularing tasks , defining system runtime parameter ..

now the question is : which of following is correct :
should i get a usecase named configuration for all of them ?
should i get a usecase named configuration and then let this configuration include other items like start-up configuration usecase ,... ?
should i make a use case for each of start-up parameter , schedularing tasks , defining system runtime parameter ..
and then make another usecase which extends them all ?

if none of the above is correct can you please tell me the correct way ?
A general question about use cases : if i include some usecase into another usecase , does it means that when parrent usecase happens all childs should happen ?

Thank you.
Scott Ambler
author
Ranch Hand

Joined: Dec 12, 2003
Posts: 608

should i get a usecase named configuration for all of them ?


It depends on the complexity of the use cases and your personal style, but this is the approach I would take to keep it simple.


A general question about use cases : if i include some usecase into another usecase , does it means that when parrent usecase happens all childs should happen ?


Yes. If Parent ---include---> Child then the Child use case will run if the path through the use case where the Child use case is invoked is run. Think of include like a procedure call. At use case example on line 11 you see how the included use case is referenced. When you process that line, the use case gets called.

- Scott


<a href="http://www-306.ibm.com/software/rational/bios/ambler.html" target="_blank" rel="nofollow">Scott W. Ambler</a><br />Practice Leader Agile Development, IBM Rational<br /> <br />Now available: <a href="http://www.ambysoft.com/books/refactoringDatabases.html" target="_blank" rel="nofollow">Refactoring Databases: Evolutionary Database Design</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: A question about uml use cases , should i use include or extends ?