8.16.2012

UML Difference FAQs-1

1.Difference between Sequence diagram and Component diagram
S.No
Sequence diagram
Component diagram
1
A sequence diagram is an interaction diagram which represents how the processes operate with each other and their order of operation.
A component diagram represents how the components are wired together to form a software system.
2
Sequence diagram keeps track of the objects and classes involved and the sequence of messages exchanged between the objects which are required to carry out the functionality.
A component diagram has a higher level of abstraction than a Class Diagram - usually a component is implemented by one or more classes at runtime.
3
Sequence diagrams are not intended for showing complex procedural logic.
Component diagrams are used to illustrate complex systems,they are building blocks so a component can eventually encompass a large portion of a system.
4
A sequence diagram is a Behavioral Modeling Diagram.
Component diagram is a Structural Modeling Diagram
2.Difference between Sequence diagram and Activity diagram
S.No
Sequence diagram
Activity diagram
1
Sequence diagram models the sequential logic, ordering of messages with respect to time.
Activity Diagram mainly represent process flows captured in system.
2
Sequence diagram mainly represent interaction between different objects.It is time ordered means exact interactions between objects is represented step by step.
Activity diagrams are good at showing the general sequence of actions for several objects and use cases.
3
Sequence diagram describes the behavior of several objects in a single use case.
Activity diagram is not dynamic diagram and it is used to see the workflow of the software.
4
Sequence diagram is lifeline of the the object and it is dynamic modeling.
Activity diagram high-level business processes, including data flow, or to model the logic of complex logic within a system.
5
Sequence diagrams describe interactions among classes in terms of an exchange of messages over time. Sequence diagrams show a detailed flow for a specific use case or even just part of a specific use case. They are almost self explanatory; they show the calls between the different objects in their sequence and can show, at a detailed level, different calls to different objects.
Activity diagrams illustrate the dynamic nature of a system by modeling the flow of control from activity to activity. An activity represents an operation on some class in the system that results in a change in the state of the system. Typically, activity diagrams are used to model workflow or business processes and internal operation.
3.Difference between Sequence diagram and Collaboration diagram
S.No
Sequence diagram
Collaboration diagram
1
In Sequence diagrams we can show Synchronous as well as
Asynchronous messages.
In Collaboration Diagram we can only show Synchronous messages.

2
Sequence Diagram shows overall flow of System event/s in a given use case.

Collaboration diagram shows how objects interacts with each other or how intercommunication b/w objects for a give use case
3
It is difficult to fine the responsibilities of objects in sequence diagram.

It is easy to detect the responsibilities of objects in collaboration diagram by just counting the number of arrows
coming into the object.
4
Sequence Diagrams are less spatial.
Collaboration Diagram are much spatial.

No comments:

Post a Comment