Objects by Design Forums Here you can view your subscribed threads, work with private messages and edit your profile and preferences Registration is free! Calendar Find other members Frequently Asked Questions Search Home  
Objects by Design Forums : Powered by vBulletin version 2.3.5 Objects by Design Forums > Main Forums > UML Questions > Inheritence for Use Cases???
  Last Thread   Next Thread
Author
Thread Post New Thread    Post A Reply
Powdrhound
Junior Member

Registered: Apr 2004
Location: Wellington New Zealand
Posts: 10

Inheritence for Use Cases???

Can a use case inherit from another

The scenario in question is where use case A is a specialisation of Use case B and references the use of the alternate flow from B

can you do this and is it good practice

This was not my understanding of when to use inheritence in UML

Last edited by Powdrhound on 09-15-2005 at 05:24 AM

Report this post to a moderator | IP: Logged

Old Post 09-15-2005 05:20 AM
Powdrhound is offline Click Here to See the Profile for Powdrhound Click here to Send Powdrhound a Private Message Find more posts by Powdrhound Add Powdrhound to your buddy list Edit/Delete Message Reply w/Quote
hanuma
Junior Member

Registered: Aug 2005
Location: New Delhi
Posts: 2

Unhappy Re: Inheritence for Use Cases???

quote:
Originally posted by Powdrhound
Can a use case inherit from another

The scenario in question is where use case A is a specialisation of Use case B and references the use of the alternate flow from B

can you do this and is it good practice

This was not my understanding of when to use inheritence in UML



You could use 'extend' relation from A to B to convey same intent.
Inheritence is actually works closely with TYPE. The concept of TYPE comes only in Design Model.
On the otherhand, the power of Use cases is to express the functionality as a whole in view of actors interest.
Hence, mixing of inheritence(design principle) with Use Cases(requirements tool) is not the viable as they resolve distinct forces in differnet problem domain(requirements, design respectively).
Any more thoughts ??

Report this post to a moderator | IP: Logged

Old Post 09-27-2005 11:37 AM
hanuma is offline Click Here to See the Profile for hanuma Click here to Send hanuma a Private Message Find more posts by hanuma Add hanuma to your buddy list Edit/Delete Message Reply w/Quote
vsatija
Junior Member

Registered: Oct 2005
Location:
Posts: 7

Hi,

I agree with hanuma. We should not mix the term inheritance with Use Cases. This term is more used in Designing.

How ever we do have specialization / Generalization relationship in use cases where Generalized use cases are base use cases and Specialized use cases are super use cases.

Restating your problem:
A is a specialized use case of B; A refers to some alternative flow of B.

What I would say is that such scenario should not encouraged. Use case is a form of Requirements and should be kept as easy as possible to understand it.

If we have an extension point available in Base use case then we can use extend relationship between base use case and super use case. This extend relationship shows optional flow.

For your Information:
There exist no relationship between two base use cases.
Between Base use case and Super use case either extend or include relationship exist. I guess some other relationship is also there but I don't exactly remember.

I hope above information is fine.

Regards,
Vipin Satija
vsatija

Report this post to a moderator | IP: Logged

Old Post 12-22-2005 11:01 AM
vsatija is offline Click Here to See the Profile for vsatija Click here to Send vsatija a Private Message Find more posts by vsatija Add vsatija to your buddy list Edit/Delete Message Reply w/Quote
Ku-Tse Cheng
Junior Member

Registered: May 2006
Location: Nanjing
Posts: 5

Some common patterns of interaction between system and actors do exist accross different projects. Therefore, the inheritance relationship from a pattern(base use case) could be meaningful.

Report this post to a moderator | IP: Logged

Old Post 06-01-2006 03:32 PM
Ku-Tse Cheng is offline Click Here to See the Profile for Ku-Tse Cheng Click here to Send Ku-Tse Cheng a Private Message Find more posts by Ku-Tse Cheng Add Ku-Tse Cheng to your buddy list Edit/Delete Message Reply w/Quote
All times are GMT. The time now is 05:54 PM. Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 

< Contact Us - Objects by Design >

Powered by: vBulletin Version 2.3.5
Copyright ©2000 - 2018, Jelsoft Enterprises Limited.
Copyright 1999-2005, Objects by Design, Inc.