Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to show Uses in Sequence Diagrams

 
Siddhartha Bhattacharya
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. How to show <<uses>> points in use case diagrams while drawing sequence diagrams.
Ex Use Case1 <<uses>> use case 2
In sequence dia for UC1 the part where it uses UC2, how should it be depicted.

2. When the use cases triggers another use case in that case should it be depicted as an Actor?
Ex Use Case 3 is triggered by Use Case 4.
 
Siddhartha Bhattacharya
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let me rephrase it.
If a Use case includes another use case then for the sequence diagram how do you display the included use case.
 
Darryl A. J. Staflund
Ranch Hand
Posts: 314
2
Android Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

If you are using UML 2.0, then you can use Interaction Occurrences to indicate the calling of one interaction by another. A good link about this and other types of new UML 2.0 constructs related to sequence diagrams, is here:

http://www-106.ibm.com/developerworks/rational/library/3101.html

Hope this helps.

Darryl

PS: A Use Case element is realized by a Collaboration in UML. Collaborations, in turn, can be depicted by one or more interaction diagrams. This means that sequence diagrams don't really call use cases directly, but can call other interaction diagrams which depict the collaboration of various objects involved in realizing the use case.
 
Eduardo Rodrigues
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Darryl A. J. Staflund:
Hi there,

If you are using UML 2.0, then you can use Interaction Occurrences to indicate the calling of one interaction by another. A good link about this and other types of new UML 2.0 constructs related to sequence diagrams, is here:

http://www-106.ibm.com/developerworks/rational/library/3101.html

Hope this helps.

Darryl

PS: A Use Case element is realized by a Collaboration in UML. Collaborations, in turn, can be depicted by one or more interaction diagrams. This means that sequence diagrams don't really call use cases directly, but can call other interaction diagrams which depict the collaboration of various objects involved in realizing the use case.


Is it allowed to use UML 2???
Is it ok???

Thanks
 
Darryl A. J. Staflund
Ranch Hand
Posts: 314
2
Android Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure, why not? The assignment, if I remember correctly, only states that the resulting diagrams have to be UML compliant but it doesn't restrict you to any one version of UML. UML 2.0 offers a lot of new features that you probably won't use in your assignment, but it does allow you to create cleaner sequence diagrams than UML 1.0 because it provides new ways of indicating sequence interaction, looping, branching, if/then/else/case statements, etc.

Darryl
 
Eduardo Rodrigues
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Darryl!!!
Thank you so much!!
I will change every sequence diagram from my project!

Bye
 
Darryl A. J. Staflund
Ranch Hand
Posts: 314
2
Android Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Whoa! I don't remember advocating that :-) If you've already drawn them you might as well keep them. You can change them if you want of course...

Darryl
 
Ronald Havelock
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using TogetherJ (community edition) for modeling. It does not have a way to reference one sequence diagram from another. Is it ok to use notes instead to imply that one sequence diagram is refering to another
 
Tomi Tuomainen
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ronald,

Sure you can do that. Everything that can't be modeled with other elements can be done by UML notes.

BTW, if you look at the OMG web site here you will see that current UML version is 1.5. Everybody's talking about 2.0 and how modeling tools support/not support it, but is it really so that 2.0 is not yet official (finalized) specification? Can we use a version that is not finalized?

Tomi
[ August 03, 2004: Message edited by: Tomi Tuomainen ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic