0% found this document useful (0 votes)
8 views6 pages

Se 6

The document outlines an experiment focused on drawing behavioral view diagrams including State-chart, Activity, and Swimlane diagrams in software engineering. It explains the purpose and components of each diagram type, emphasizing their role in modeling the dynamic behavior of systems and facilitating communication among development teams. The document also includes specific diagrams for an Attendance Management System as practical examples.

Uploaded by

vedantgupta411
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views6 pages

Se 6

The document outlines an experiment focused on drawing behavioral view diagrams including State-chart, Activity, and Swimlane diagrams in software engineering. It explains the purpose and components of each diagram type, emphasizing their role in modeling the dynamic behavior of systems and facilitating communication among development teams. The document also includes specific diagrams for an Attendance Management System as practical examples.

Uploaded by

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

CS3CO40(P): Software Engineering Laboratory Experiment no- 6

Experiment: To draw the behavioural view diagram: State-chart diagram, Activity diagram, Swimlane
diagram.

1.Objective:
To draw the behavioral view diagram: State-chart diagram, Activity diagram, Swimlane
diagram.

2.Introduction:
Behavioral UML diagrams -
Complex applications need collaboration and planning from multiple teams and hence require
a clear and concise way to communicate amongst them. So, UML becomes essential to
communicate with non-programmers about essential requirements, functionalities, and
processes of the system. UML is linked with object-oriented design and analysis. UML makes
use of elements and forms associations between them to form diagrams. Behavioral UML
diagrams focus on illustrating the dynamic aspects of a software system, showcasing how it
behaves, responds to stimuli, and undergoes state changes during runtime.
Behavior diagrams show the dynamic behavior of the objects in a system, which can be
described as a series of changes to the system over time.
There are seven types of behavior diagrams as follows:
▪ Use Case Diagram
▪ Activity Diagram
▪ State Machine Diagram
▪ Sequence Diagram
▪ Communication Diagram
▪ Interaction Overview Diagram
▪ Timing Diagram

State - Chart Diagram:

State-chart diagrams are useful to model the reactive systems. Reactive systems can be
defined as a system that responds to external or internal events. 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. Reactive systems
can be defined as a system that responds to external or internal events.

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 behavioural diagram and it represents the behaviour State Machine
diagrams are also referred to as State Machines Diagrams and State-Chart Diagrams.

Department of Computer Science & Engineering


Student Name: Harshita Mantri Enrollment NO: EN22CS301407

1
CS3CO40(P): Software Engineering Laboratory Experiment no- 6
Experiment: To draw the behavioural view diagram: State-chart diagram, Activity diagram, Swimlane
diagram.

•These terms are often used interchangeably. So simply, a state machine diagram is
used to model the dynamic behaviour of a class in response to time and changing
external stimuli.
• We can say that each and every class has a state but we don’t model every class using
State Machine diagrams.
• We prefer to model the states with three or more states.
Components of a State Machine diagram:

Initial state Transition State Fork

Join Self-Transition Composite State Final state

1. State: We use a rounded rectangle to represent a state. A state represents the


conditions or circumstances of an object of a class at an instant of time.
2. Transitions: Arrows connecting states, indicating how the system moves from one
state to another based on events.
3. Initial State: Marked by a solid black circle, showing the starting point of the state
machine.
4. Final State: Represented by a circle with a dot inside, signifying the end of the state
machine process.
5. Actions/Activities: Tasks executed on entering, exiting, or during a transition
between states.
6. Composite States: States containing nested states to represent more complex
behaviours.
7. Fork: We use a rounded solid rectangular bar to represent a Fork notation with
incoming arrow from the parent state and outgoing arrows towards the newly created
states. We use the fork notation to represent a state splitting into two or more
concurrent states.
8. Join: We use a rounded solid rectangular bar to represent a Join notation with
incoming arrows from the joining states and outgoing arrow towards the common
goal state. We use the join notation when two or more states concurrently converge
into one on the occurrence of an event or events.

STATE – CHART DIAGRAM FOR ATTENDANCE MANAGEMENT SYSTEM: -


Department of Computer Science & Engineering
Student Name: Harshita Mantri Enrollment NO: EN22CS301407

2
CS3CO40(P): Software Engineering Laboratory Experiment no- 6
Experiment: To draw the behavioural view diagram: State-chart diagram, Activity diagram, Swimlane
diagram.

Activity Diagram:

Activity diagrams are an essential part of the Unified Modeling Language (UML) that
help visualize workflows, processes, or activities within a system. They depict how
different actions are connected and how a system moves from one state to another. By
offering a clear picture of both simple and complex workflows, activity diagrams make it
easier for developers and stakeholders to understand how various elements interact in a
system.

Activity diagrams show the steps involved in how a system works, helping us understand the
flow of control. They display the order in which activities happen and whether they occur one
after the other (sequential) or at the same time (concurrent). These diagrams help explain
what triggers certain actions or events in a system.

• An activity diagram starts from an initial point and ends at a final point, showing
different decision paths along the way.

• They are often used in business and process modeling to show how a system behaves
over time.

Department of Computer Science & Engineering


Student Name: Harshita Mantri Enrollment NO: EN22CS301407

3
CS3CO40(P): Software Engineering Laboratory Experiment no- 6
Experiment: To draw the behavioural view diagram: State-chart diagram, Activity diagram, Swimlane
diagram.

Components of an Activity diagram:

1. Initial State: The starting state before an activity takes place is depicted using the initial
state.

2. Action or Activity State: An activity represents execution of an action on objects or by


objects. We represent an activity using a rectangle with rounded corners.

3. Action Flow or Control flows: Action flows or Control flows are also referred to as paths
and edges. They are used to show the transition from one activity state to another activity
state.

4. Decision node and Branching: When we need to make a decision before deciding the
flow of control, we use the decision node. The outgoing arrows from the decision node can be
labelled with conditions or guard expressions. It always includes two or more output arrows.

5. Guard: A Guard refers to a statement written next to a decision node on an arrow


sometimes within square brackets.

6. Fork: Fork nodes are used to support concurrent activities. When we use a fork node when
both the activities get executed concurrently i.e. no decision is made before splitting the
activity into two parts. Both parts need to be executed in case of a fork statement.

7. Join: Join nodes are used to support concurrent activities converging into one. For join
notations we have two or more incoming edges and one outgoing edge.

Department of Computer Science & Engineering


Student Name: Harshita Mantri Enrollment NO: EN22CS301407

4
CS3CO40(P): Software Engineering Laboratory Experiment no- 6
Experiment: To draw the behavioural view diagram: State-chart diagram, Activity diagram, Swimlane
diagram.

8. Merge or Merge Event: Scenarios arise when activities which are not being executed
concurrently have to be merged. We use the merge notation for such scenarios. We can
merge two or more activities into one if the control proceeds onto the next activity
irrespective of the path chosen.

9. Final State or End State: The state which the system reaches when a particular process or
activity ends is known as a Final State or End State.

ACTIVITY DIAGRAM FOR ATTENDANCE MANAGEMENT SYSTEM:

Swimlane Diagram:

A swimlane diagram is also called a cross-functional diagram. The name, cross-functional


process map, means the whole work process “crosses” several functions. By using
swimlane diagrams in system design, you can create a clear and concise representation of
your system architecture, promoting better understanding, collaboration, and ultimately, a

Department of Computer Science & Engineering


Student Name: Harshita Mantri Enrollment NO: EN22CS301407

5
CS3CO40(P): Software Engineering Laboratory Experiment no- 6
Experiment: To draw the behavioural view diagram: State-chart diagram, Activity diagram, Swimlane
diagram.

more robust and efficient system. In this article, we will discuss the what is swimlane
diagram, its benefits, attributes, elements, and steps to draw a swimlane diagram.

A swimlane diagram is a popular tool for visualizing processes, but its journey to
becoming a staple in various fields, including system design, has been an interesting
evolution.
• Swimlane diagrams and swimlane flowcharts are essentially the same thing.
• Both terms refer to a type of flowchart that uses horizontal or vertical lanes to show
the different steps in a process and who is responsible for each step.

SWIMLANE DIAGRAM FOR ATTENDANCE MANAGEMENT SYSTEM: -

Department of Computer Science & Engineering


Student Name: Harshita Mantri Enrollment NO: EN22CS301407

You might also like