Presentation On Sequence And State Flow Diagram Presented by 1. Rambhakta Pandey(818) 2. Amit Thakur 3.Pawan Regmi 4.Prashant Kunwar Presented to Er.Nirajan Hamal lecturer, Himalayan Whitehouse International College
Presentation Outline What is Sequence Diagram? Purpose of Sequence Diagram Notation Example Conclusion
What is Sequence Diagram? Sequence diagram simply depicts interaction between objects in a sequential order. These are also called as “Event D iagram”.
Purpose of Sequence Diagram Model high-level interaction between active objects in a system. Model the interaction between object instances within a collaboration that realizes a use case. Model the interaction between objects within a collaboration that realizes an operation.
Notation Objects or Participants : The sequence diagram is made up of collection of participants or objects. Participants are system parts that interact each other during sequence diagram. The participants interact with each other by sending and receiving message. Lifeline An individual participant in the sequence diagram is represented by a lifeline. It is positioned at the top of the diagram. It is represented by vertical dashed line .
Notation Activation or Execution Occurrence: It is represented by a thin rectangle on the lifeline. It describes that time period in which an operation is performed by an element, such that the top and the bottom of the rectangle is associated with the initiation and the completion time, each respectively.
Notation Massages: A message defines a particular communication between Lifelines of an Interaction. Call Message: Call message is a kind of message that represents an invocation of operation of target lifeline . Return Massage: Return message is a kind of message that represents the pass of information back to the caller of a corresponded former message.
Notation 3. Self Message: Self message is a kind of message that represents the invocation of message of the same lifeline. 4. Destroy Message: Destroy message is a kind of message that represents the request of destroying the lifecycle of target lifeline.
Notation Guards: When modeling object interactions, there will be times when a condition must be met for a message to be sent to the object. Guards are used throughout UML diagrams to control flow.
Notation
Example: Railway Ticket Booking
Conclusion a good diagram to use to document a system’s requirements and to flush out a system’s design. it shows the interaction logic between the objects in the system in the time order that the interactions take place.