Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

extend and include relationships

 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In Rational Rose, what is the diff between extend sterotyped relationship and include sterotyped relationship. Is the extend a kind of generalization ?
 
Sheriff
Posts: 16660
278
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
(pulling out my dog-eared copy of "UML Distilled")
According to Mr. Fowler, an include occurs when you have a chunk of behavior that is similar across more than one use case and you don't want to keep copying the description of that behavior. Just put the common stuff in a separate use case and <include> it as needed.
extend is similar to generalization but has more rules (i.e. it's a more formal way of generalizing). Use it when you are describing a variation of the normal course of events and you want to specify the extension points in your base use case.
HTH,
Junilu
 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Extends and include relationship
Hi
i am trying to define extends and include relationship.
Inclusion:
inclusion enables you to reuse one use case's steps inside another use case.
To represent inclusion, you use the symbol you used for dependency betweeen classes-dotted line connceting the classes with an arrowhead pointing to the depended-on class.
Extension:
Extension allows you to create a new use case by adding steps to an exsisting use case.
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I agree with Zafar Ali . Here is an example . Assume, we have use case UseCaseA doing something as following :
B
do somethings 1
// pointE
do somethings 2
Because, B often happends , we decide to view it as a use case UseCaseB . Therefore UseCaseA includes UseCaseB :
         << include >>
UseCaseA ----------> UseCaseB
However, UseCaseA can be the basic thing of other use case UseCaseE with the following logic
B
do somethings 1
// pointE
if( condition ) C
do somethings 2

Now, UseCaseE is called to extend UseCaseA at extension point "pointE"

         << extend >>
UseCaseE ----------> UseCaseA
----------------
We can have a real example with
UseCaseA = ProcessOrder
UseCaseB = CheckCredidCard
UseCaseE = ProcessOrderWithPromotion
Logic of UseCaseE as following
Check credid card
take money from credit card
if( it is 1st order )
send gif to customer
Send confirm email to customer .

Originally posted by Zafar Ali:
Extends and include relationship
Hi
i am trying to define extends and include relationship.
Inclusion:
inclusion enables you to reuse one use case's steps inside another use case.
To represent inclusion, you use the symbol you used for dependency betweeen classes-dotted line connceting the classes with an arrowhead pointing to the depended-on class.
Extension:
Extension allows you to create a new use case by adding steps to an exsisting use case.


[ May 29, 2002: Message edited by: Thien Nguyen ]
[ May 29, 2002: Message edited by: Thien Nguyen ]
[ May 29, 2002: Message edited by: Thien Nguyen ]
[ May 29, 2002: Message edited by: Thien Nguyen ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic