Vous êtes sur la page 1sur 2

1.Difference between Sequence diagram and Component diagram S.

No 1 Sequence diagram Component diagram

A sequence diagram is an A component diagram represents how interaction diagram which the components are wired together to represents how the processes form a software system. operate with each other and their order of operation. 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.

Sequence diagrams are not Component diagrams are used to intended for showing complex illustrate complex systems,they are procedural logic. building blocks so a component can eventually encompass a large portion of a system. A sequence diagram is a Component diagram is a Structural Behavioral Modeling Diagram. Modeling Diagram

2.Difference between Sequence diagram and Activity diagram S.No 1 Sequence diagram Activity diagram

Sequence diagram models the Activity Diagram mainly represent sequential logic, ordering of process flows captured in system. messages with respect to time. Sequence diagram mainly Activity diagrams are good at showing represent interaction between the general sequence of actions for different objects.It is time ordered several objects and use cases. means exact interactions between objects is represented step by step. Sequence diagram describes the Activity diagram is not dynamic behavior of several objects in a diagram and it is used to see the single use case. workflow of the software. Sequence diagram is lifeline of Activity diagram high-level business the the object and it is dynamic processes, including data flow, or to modeling. model the logic of complex logic within a system. Sequence diagrams describe Activity diagrams illustrate the interactions among classes in dynamic nature of a system by terms of an exchange of messages modeling the flow of control from

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 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 1 Sequence diagram Collaboration diagram

In Sequence diagrams we can In Collaboration Diagram we can only show Synchronous as well as show Synchronous messages. Asynchronous messages. Sequence Diagram shows overall Collaboration diagram shows how flow of System event/s in a given objects interacts with each other or use case. how intercommunication b/w objects for a give use case It is difficult to fine the It is easy to detect the responsibilities responsibilities of objects in of objects in collaboration diagram by sequence diagram. just counting the number of arrows coming into the object. Sequence spatial. Diagrams are less Collaboration spatial. Diagram are much

And, further updates on difference between questions and answers, please visit my blog @ http://onlydifferencefaqs.blogspot.in/

Vous aimerez peut-être aussi