Explain following terms of UML - Sequence Diagram, Collaboration Diagram, Component Diagram, Deployment Diagram. Sequence Diagram
Sequence diagrams explain the sequence of events that take place in the system. It models the flow of logic. Sequence diagrams also explain how the different processes in the system interact with the system. Interaction can be shown using messages. Horizontal arrows are used to show interaction.
Collaboration diagrams are similar to Sequence diagrams showing interaction between objects. However, unlike a sequence diagram, collaboration diagrams also show the relationships between the objects. It can be used to show a particular scenario by showing interaction between objects.
Component diagrams are used to depict the dependencies between various components of the system. It shows how the system is split into components. Components here could mean files, executables, libraries, packages etc. component diagrams deals with the physical aspect of the system. A component here has some attributes and operations.
A deployment diagram represents a static view of the system. The static view represents the hardware and software of the system. It shows the middleware used to connect two systems. Deployment diagrams can be used to explore the architecture of the system. If an application is deployed on two systems, ideally two deployment diagrams will be created.