0% found this document useful (0 votes)
10 views

(1.3.6)Class and Activity Diagram

The document outlines key topics in Software Engineering, specifically focusing on Interaction Diagrams, Activity Diagrams, and State Chart Diagrams. It explains the purpose and components of each diagram, emphasizing their roles in modeling the dynamic behavior and workflows of systems. Additionally, it provides references for further reading on the subject.

Uploaded by

gurshaan's side
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

(1.3.6)Class and Activity Diagram

The document outlines key topics in Software Engineering, specifically focusing on Interaction Diagrams, Activity Diagrams, and State Chart Diagrams. It explains the purpose and components of each diagram, emphasizing their roles in modeling the dynamic behavior and workflows of systems. Additionally, it provides references for further reading on the subject.

Uploaded by

gurshaan's side
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 17

University Institute of Engineering

DEPARTMENT OF COMPUTER SCIENCE &


ENGINEERING
Subject Name: Software Engineering
Subject Code: 23CST-206

Er. Jagmeet Kaur


E8387
ASSISTANT PROFESSOR DISCOVER . LEARN . EMPOWER
CSE

09/12/24 Er. Jagmeet Kaur, Asst. Prof., CSE, Chandigarh Univer 1


sity
Topics covered
• Interaction Diagram

• Activity Diagram

• State Chart Diagram

Er. Jagmeet Kaur, Asst. Prof., CSE, Chandigarh University 2


Interaction Diagram
• The purpose of interaction diagram is −
• To capture the dynamic behavior of a system.
• To describe the message flow in the system.
• To describe the structural organization of the objects.
• To describe the interaction among objects.

Er. Jagmeet Kaur, Asst. Prof., CSE, Chandigarh University 3


Interaction Diagram
• Following things are to be identified clearly before drawing the
interaction diagram
• Objects taking part in the interaction.
• Message flows among the objects.
• The sequence in which the messages are flowing.
• Object organization.

Er. Jagmeet Kaur, Asst. Prof., CSE, Chandigarh University 4


Interaction Diagram

Er. Jagmeet Kaur, Asst. Prof., CSE, Chandigarh University 5


Behavior Diagrams
• Activity Diagrams
• We use Activity Diagrams to illustrate the flow of control in a system.
• We can also use an activity diagram to refer to the steps involved in
the execution of a use case.
• We model sequential and concurrent activities using activity
diagrams. describe or depict what causes a particular event using an
activity diagram.

Er. Jagmeet Kaur, Asst. Prof., CSE, Chandigarh University 6


Activity Diagram
• The purpose of an activity diagram can be described as −
• Draw the activity flow of a system.
• Describe the sequence from one activity to another.
• Describe the parallel, branched and concurrent flow of the system.

Er. Jagmeet Kaur, Asst. Prof., CSE, Chandigarh University 7


Activity Diagram
• Activity diagrams are mainly used as a flowchart that consists of
activities performed by the system. Activity diagrams are not exactly
flowcharts as they have some additional capabilities. These additional
capabilities include branching, parallel flow etc.
• Before drawing an activity diagram, we should identify the following
elements −
• Activities
• Association
• Conditions
• Constraints
Er. Jagmeet Kaur, Asst. Prof., CSE, Chandigarh University 8
Activity Diagram
• Following diagram is drawn with the four main activities −
• Send order by the customer
• Receipt of the order
• Confirm the order
• Dispatch the order

Er. Jagmeet Kaur, Asst. Prof., CSE, Chandigarh University 9


Activity Diagram
• Activity diagram can be used for −
• Modeling work flow by using activities.
• Modeling business requirements.
• High level understanding of the system's functionalities.
• Investigating business requirements at a later stage.

Er. Jagmeet Kaur, Asst. Prof., CSE, Chandigarh University 10


State chart Diagram
• State chart diagram is one of the five UML diagrams used to model
the dynamic nature of a system. They define different states of an
object during its lifetime and these states are changed by events
• Following are the main purposes of using State chart diagrams −
• To model the dynamic aspect of a system.
• To model the life time of a reactive system.
• To describe different states of an object during its life time.
• Define a state machine to model the states of an object.

Er. Jagmeet Kaur, Asst. Prof., CSE, Chandigarh University 11


Behavior Diagrams
• State Machine Diagrams
• A state diagram is used to represent the condition of the system or part
of the system at finite instances of time.
• It’s a behavioral diagram and it represents the behavior using finite
state transitions. State diagrams are also referred to as State
machines and State-chart Diagrams .
• These terms are often used interchangeably.
• So simply, a state diagram is used to model the dynamic behavior of a
class in response to time and changing external stimuli.

Er. Jagmeet Kaur, Asst. Prof., CSE, Chandigarh University 12


How to Draw a State chart Diagram?
• State chart diagram is used to describe the states of different objects
in its life cycle. Emphasis is placed on the state changes upon some
internal or external events.
• Before drawing a State chart diagram we should clarify the following
points −
• Identify the important objects to be analyzed.
• Identify the states.
• Identify the events.

Er. Jagmeet Kaur, Asst. Prof., CSE, Chandigarh University 13


State Chart Diagram

Er. Jagmeet Kaur, Asst. Prof., CSE, Chandigarh University 14


Where to Use State chart Diagrams?
• The main usage can be described as −
• To model the object states of a system.
• To model the reactive system. Reactive system consists of reactive
objects.
• To identify the events responsible for state changes.
• Forward and reverse engineering.

Er. Jagmeet Kaur, Asst. Prof., CSE, Chandigarh University 15


REFERENCES
Reference Books:
1. Suman Ugrasen, “Software Engineering - Concepts and Practices”, First Edition, Cengage.
2. Mohammad Ali Shaikh, “Software Engineering with UML”, Third Edition, Notion Press.
3. Somerville Ian, “Software Engineering”, Addison Wesley, 8th Edition.
Text Books:
4. Pressman Rogers, “Software Engineering: A Practitioner's Approach”, Sixth edition. Patterson
and Hennessy, “Computer Architecture” , Fifth Edition Morgaon Kauffman.
5. Rajib Mall, “Fundamentals of Software Engineering’’, Fourth Edition, Pearson, PHI.
Image References
https://www.geeksforgeeks.org/unified-modeling-language-uml-introduction/
https://www.uml.org/

Er. Jagmeet Kaur, Asst. Prof., CSE, Chandigarh University 16


THANK YOU

Er. Jagmeet Kaur, Asst. Prof., CSE, Chandigarh University

You might also like