Book a Demo

Author Topic: Use cases and sequence diagrams  (Read 13427 times)

grobledc

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Use cases and sequence diagrams
« on: November 26, 2008, 01:30:01 am »
Hi, I would like to know whether its valid to say that "a use case can have a sequence diagram, but a sequence diagram must have a use case". If we have a non-functional requirement not modelled as a use case, causing us to have more than one possible sequence, will this rule still hold true?  :-?

Oliver F.

  • EA User
  • **
  • Posts: 573
  • Karma: +2/-1
  • Aren´t we all in the model business ?
    • View Profile
    • Karl Storz homepage
Re: Use cases and sequence diagrams
« Reply #1 on: November 26, 2008, 03:14:49 am »
Quote
Hi, I would like to know whether its valid to say that "a use case can have a sequence diagram, but a sequence diagram must have a use case". If we have a non-functional requirement not modelled as a use case, causing us to have more than one possible sequence, will this rule still hold true?  :-?

UseCases are describing functional requirements. There is nothing else in the UML spec which defines an alternative. A UseCase usually is the entry point under which a more detailed description can be found by having more UseCases or sequence/activity diagrams.

A functional diagram without a UseCase is an orphan. It tries to describe a functionality which does not officially exist by simply floating around and no idea where to sort it in- it has no identity.

A non-functional requirement does not describe a functionality, hence the name, hence it can not have a sequence below it.
The only thing it can do is to influence exsiting UseCases enforcing the architect to have more paths or more diagrams below an existing UC.

So the rule "a use case can have a sequence diagram, but a sequence diagram must have a use case" can of course be violated but all efforts of a disciplined architect should go into enforcing it.

bonzo5

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Use cases and sequence diagrams
« Reply #2 on: December 03, 2008, 08:18:52 am »
The sequence diagram is the realization of the use case, and use cases capture requirements.  These relationships help to show the traceability of requirements to interaction / behavior.  IDEF0 is equivalent to a use case, although it can capture much more information, especially if the user has full ICOM (Inputs-Controls-Outputs-Mechanisms).

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Use cases and sequence diagrams
« Reply #3 on: December 03, 2008, 10:14:45 am »
Quote
The sequence diagram is the realization of the use case, and use cases capture requirements.  These relationships help to show the traceability of requirements to interaction / behavior.  IDEF0 is equivalent to a use case, although it can capture much more information, especially if the user has full ICOM (Inputs-Controls-Outputs-Mechanisms).
I think you just need to be careful as there are two kinds of sequence diagrams (I think).  Those that capture a specific scenario and those that represent a union of a number of scenarios.  I believe the latter form is what you're talking about here.

Just my AU$0.05
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!