Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sequence Diagram vs Usecase Diagram

I have build a usecase diagram for hotel reservation

Should i build a sequence diagram for each usecase in the usecase diagram, or can i summarize multiple usecase in a single sequence diagram?

like image 719
ahmad alhilal Avatar asked Sep 11 '15 08:09

ahmad alhilal


People also ask

What is the difference between sequence and statechart diagrams?

A sequence diagram is aimed at one specific function, e.g. withdrawing money from your bank account, whereas a state chart can model a whole system.

What is the difference between sequence diagram and timing diagram?

A timing diagram is a special form of a sequence diagram. The differences between timing diagram and sequence diagram are the axes are reversed so that the time increases from left to right and the lifelines are shown in separate compartments arranged vertically.

What is difference between sequence and communication diagram?

A communication diagram offers the same information as a sequence diagram, but while a sequence diagram emphasizes the time and order of events, a communication diagram emphasizes the messages exchanged between objects in an application. Sequence diagrams can fall short of offering the "big picture.”

What is relation between use case & sequence diagram?

A use-case model is built and the actors are connected to use cases. Each use case represents a task in which the actor participates. For each use case, a sequence diagram is built. Each sequence diagram specifies the main interaction steps to be achieved for each task (i.e. use case).


2 Answers

A use case diagram shows how use cases and actors relate to each other and gives a functional system overview. Use cases boil the system down to their added values and do not show how these are achieved.

Any scenario of a use case is graphically represented in an activity diagram where the single steps occur as actions.

A sequence diagram is used to show how objects communicate.

Usually you derive classes and relate them to actions of the use case activities. So when you create a sequence diagram it highlights a certain aspect of the whole system. This highlight is usually spot on and not a floodlight. Putting multiple use case scenarios in a single SD would for sure simply blind any reader instantly.

like image 116
qwerty_so Avatar answered Sep 24 '22 15:09

qwerty_so


Usecase diagram

Use case diagrams show business use cases, actors, and the relationships between them. The relationships between actors and business use cases state that an actor can use a certain functionality of the business system. You will not find any information about how or in what chronological sequence these services are rendered

sequence diagram

A sequence diagram can map a scenarios described by a use case in step by step detail to define how objects collaborate to achieve your application's goals.

Here is the diagram , which will clear things better to you

use case diagram on left and sequence diagram on right

like image 40
vishwampandya Avatar answered Sep 23 '22 15:09

vishwampandya