Interaction diagram are diagram that describe how groups of objects collaborate to get the job done. Interaction diagrams capture the behavior of a single use case, showing the pattern of interaction among objects. There are two kinds of interaction models.
Sequence diagrams are an easy and intuitive way of describing the behavior of a system by viewing the interaction behavior the system and its environment. A sequence diagram shows an interaction changed in a time sequence. It shows the object participating in the interaction by their lifelines and the messages they exchange arranged in time sequence.
A sequence diagram has two dimensions
1. Vertical dimension –represent time.
2. Horizontal dimension-represents different objects.
The vertical line is called the object life line. The life line represents the objects during the interaction an object is shown as a box at the top of a dashed vertical line.
However, a sequence diagram does not show the relationship among the roles (or) the association among the objects. An object role is show vertical dashed line the lifeline.
Each message is represented by an arrow between the lifelines of two objects. The order in which these messages occur is shown top to bottom on the page. Each message is represented by an arrow between the lifelines of objects. The order in which these messages occur is shown top to bottom on the page. Each message is labeled with the message that an object sends to itself by sending the message arrow back to the same lifeline. The horizontal ordering of the lifeline is arbitrary.
The sequence diagram is very simple and has immediate visual object appeal.This is its great strength.
A sequence diagram is an alternative way to understand the overall flow of the control of a program.Instead of locking at the code and trying to findout the overall sequence of behavior,we can use diagram to quickly understand the sequence. login
Enter the word:
CONCLUSION: Thus the sequence diagram and collaboration diagram are done for