Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
raminaa niilian
Ranch Hand
Posts: 551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 608
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic