SlideShare ist ein Scribd-Unternehmen logo
1 von 34
UNIT I UML DIAGRAMS
Introduction to OOAD – Unified Process –
UML diagrams – Use Case – Class Diagrams–
Interaction Diagrams – State Diagrams –
Activity Diagrams –
Package, component and Deployment Diagrams.
State Diagram
Describe all of the possible states
that a particular object can get into and
how the object's state changes as a result of events
that reach the object.
Overview
• State Diagram  Model the dynamic aspect of a system
– Define different states of an object during its lifetime.
– Describes the flow of control from one state to another state.
• A Statechart diagram describes a state machine.
• A state machine can be defined as a machine
– It defines different states of an object and
These states are controlled by external or internal events.
Purpose
• To model dynamic aspect of a system.
• To model life time of a reactive system.
• To describe different states of an object during its life time.
• Define a state machine to model states of an object.
Points to be Clarified
• Before a Statechart diagram, clarified the following points:
1. Identify important objects to be analyzed.
2. Identify the states.
• A state is the condition of an object at a moment in time—the time between events
3.Identify the events.
An event is a significant or noteworthy occurrence.
For example:
A telephone receiver is taken off the hook
Transition:
• A transition is a relationship between two states that indicates that
when an event occurs, the object moves from the prior state to the
subsequent state.
Transitions are shown as arrows, labeled with their event.
States are shown in rounded rectangles.
Subject of a Statechart Diagram:
A statechart diagram may be applied to a variety of UML
elements, including:
• classes (conceptual or software)
• use cases
Since an entire "system" may be represented by a class,
it too may have its own statechart diagram.
Basic notational elements
• Filled circle
– Represent the initial state
• Hollow circle containing a smaller filled circle,
– Indicate the final state (if any)
• Rounded rectangle
– Denote a state.
• Arrow, denoting transition.
How to Draw: State Diagrams
Activity section of the state symbol depicts
what activities the object will be doing while it is in that state.
How to Draw: State Diagrams
Conditions based on the activities
can determine what the next state
the object transitions to.
Example: State Diagrams
When the object enters the Checking state
it performs the activity "check items."
After the activity is completed the object transitions to next state based on conditions
[all items available] or [an item is not available].
If an item is not available the order is canceled.
If all items are available then the order is dispatched.
In Dispatching state the activity "initiate delivery" is performed.
After this activity is complete the object transitions to the Delivered state.
Super-State
• State diagrams can also show a super-state for the object.
• A super-state is used when many transitions lead to the a certain state.
• Instead of showing all transitions from each state to the redundant state
– A super-state can be used to show that all the states inside of the super-state
can transition to the redundant state.
• This helps make the state diagram easier to read.
Super-State
• Both Checking and Dispatching states can transition into Canceled state
• So a transition is shown from a super-state named Active to the state
Cancel.
Example
Main Usage of State Diagram
1. To model object states of a system.
2. To model reactive system.
– Reactive system consists of reactive objects.
1. To identify events responsible for state changes.
2. Forward and reverse engineering.
Activity Diagram
A flow chart to represent the flow form one activity to
another activity.
A UML activity diagram offers rich notation to show
a sequence of activities.
Overview
• Activity diagram is used
– To show message flow from one activity to another.
• Activity is a particular operation of the system.
• Purposes of 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.
Purpose
• 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.
05 October, 2007 Information System Design
IT60105, Autumn 2007
Basic Components in an Activity Diagram
• Initial node
– The filled circle is the starting point
of the diagram
• Final node
– The filled circle with a boarder is the
ending point. An activity diagram
can have zero or more activity final
state.
• Activity
– The rounded circle represents
activities that occur. An activity is
not necessarily a program, it may be
a manual thing also
• Flow/ edge
– The arrows in the diagram. No label
is necessary
R e c e iv e d f o r m
P a y m e n t f e e s
H o s t e l
a llo t m e n t
I s s u e id e n t it y
c a r d
M e d ic a l c h e c k
I s s u e lib r a r y
c a r d
05 October, 2007 Information System Design
IT60105, Autumn 2007
Basic Components in an Activity Diagram
• Fork
– A black bar ( horizontal/vertical )
with one flow going into it and
several leaving it. This denotes the
beginning of parallel activities
• Join
– A block bar with several flows
entering it and one leaving it. this
denotes the end of parallel activities
• Merge
– A diamond with several flows
entering and one leaving. The
implication is that all incoming flow
to reach this point until processing
continues
R e c e iv e d f o r m
P a y m e n t f e e s
H o s t e l
a llo t m e n t
I s s u e id e n t it y
c a r d
M e d ic a l c h e c k
I s s u e lib r a r y
c a r d
05 October, 2007 Information System Design
IT60105, Autumn 2007
Basic Components in an Activity Diagram
• Difference between Join and Merge
– A join is different from a merge in that the join synchronizes two
inflows and produces a single outflow. The outflow from a join cannot
execute until all inflows have been received
– A merge passes any control flows straight through it. If two or more
inflows are received by a merge symbol, the action pointed to by its
outflow is executed two or more times
05 October, 2007 Information System Design
IT60105, Autumn 2007
Basic Components in an Activity Diagram
• Decision
– A diamond with one flow
entering and several leaving. The
flow leaving includes conditions
as yes/ no state
• Flow final
– The circle with X though it. This
indicates that Process stop at this
point
• Swim lane
– A partition in activity diagram by
means of dashed line, called
swim lane. This swim lane may
be horizontal or vertical
R e c e iv e d f o r m
P a y m e n t f e e s
H o s te l
a llo t m e n t
I s s u e id e n t it y
c a r d
M e d ic a l c h e c k
I s s u e lib r a r y
c a r d
Points to be Clarified
• Before drawing an activity diagram, identify the following
elements:
1. Activities
2. Association
3. Conditions
4. Constraints
• Once these mentioned parameters are identified
– Make a mental layout of the entire flow.
• This mental layout is then transformed into an activity diagram.
Main usages of activity diagram
• Modeling work flow by using activities.
• Modeling business requirements.
• High level understanding of the system's functionalities.
• Investigate business requirements at a later stage.
Basic Activity Diagram Notations
• A black circle represents the start (initial state) of the workflow;
• An encircled black circle represents the end (final state).
• Rounded rectangles represent actions;
• Diamonds represent decisions;
• Bars represent the start (split) or end (join) of concurrent activities;
Arrows run from the start towards 
the end and represent the order in which 
activities happen.
Example
• Order management system
– 4 activities are identified which are associated with conditions
1. Send order by the customer
2. Receipt of the order
3. Confirm order
4. Dispatch order
After receiving the order request
Condition checks are performed to check if it is normal or special order.
After the type of order is identified 
Dispatch activity is performed 
and that is marked as 
the termination of the process
UML Diagrams: State Diagram & Activity Diagram
UML Diagrams: State Diagram & Activity Diagram
UML Diagrams: State Diagram & Activity Diagram
UML Diagrams: State Diagram & Activity Diagram

Weitere ähnliche Inhalte

Was ist angesagt?

Object oriented methodologies
Object oriented methodologiesObject oriented methodologies
Object oriented methodologiesnaina-rani
 
09 package diagram
09 package diagram09 package diagram
09 package diagramBaskarkncet
 
UML diagrams and symbols
UML diagrams and symbolsUML diagrams and symbols
UML diagrams and symbolsKumar
 
Object Oriented Design Concept
Object Oriented Design ConceptObject Oriented Design Concept
Object Oriented Design ConceptSharath g
 
Lecture11 use case sequence diagram
Lecture11 use case sequence diagramLecture11 use case sequence diagram
Lecture11 use case sequence diagramShahid Riaz
 
Object Oriented Analysis and Design
Object Oriented Analysis and DesignObject Oriented Analysis and Design
Object Oriented Analysis and DesignHaitham El-Ghareeb
 
Unit 1( modelling concepts & class modeling)
Unit  1( modelling concepts & class modeling)Unit  1( modelling concepts & class modeling)
Unit 1( modelling concepts & class modeling)Manoj Reddy
 
Overview of UML Diagrams
Overview of UML DiagramsOverview of UML Diagrams
Overview of UML DiagramsManish Kumar
 
analysis and design with uml
analysis and design with umlanalysis and design with uml
analysis and design with umlsabin kafle
 
Uml deployment diagram
Uml deployment diagramUml deployment diagram
Uml deployment diagramAsraa Batool
 
Uml in software engineering
Uml in software engineeringUml in software engineering
Uml in software engineeringMubashir Jutt
 
Communication diagram Introduction
Communication diagram IntroductionCommunication diagram Introduction
Communication diagram IntroductionDineesha Suraweera
 
INTRODUCTION TO UML DIAGRAMS
INTRODUCTION TO UML DIAGRAMSINTRODUCTION TO UML DIAGRAMS
INTRODUCTION TO UML DIAGRAMSAshita Agrawal
 
UNIFIED MODELING LANGUAGE
UNIFIED MODELING LANGUAGEUNIFIED MODELING LANGUAGE
UNIFIED MODELING LANGUAGERaval Chirag
 

Was ist angesagt? (20)

Analysis modeling
Analysis modelingAnalysis modeling
Analysis modeling
 
Object oriented methodologies
Object oriented methodologiesObject oriented methodologies
Object oriented methodologies
 
09 package diagram
09 package diagram09 package diagram
09 package diagram
 
UML diagrams and symbols
UML diagrams and symbolsUML diagrams and symbols
UML diagrams and symbols
 
Object Oriented Design Concept
Object Oriented Design ConceptObject Oriented Design Concept
Object Oriented Design Concept
 
CS8592-OOAD Lecture Notes Unit-3
CS8592-OOAD Lecture Notes Unit-3CS8592-OOAD Lecture Notes Unit-3
CS8592-OOAD Lecture Notes Unit-3
 
Lecture11 use case sequence diagram
Lecture11 use case sequence diagramLecture11 use case sequence diagram
Lecture11 use case sequence diagram
 
Object Oriented Analysis and Design
Object Oriented Analysis and DesignObject Oriented Analysis and Design
Object Oriented Analysis and Design
 
Unit 1( modelling concepts & class modeling)
Unit  1( modelling concepts & class modeling)Unit  1( modelling concepts & class modeling)
Unit 1( modelling concepts & class modeling)
 
Overview of UML Diagrams
Overview of UML DiagramsOverview of UML Diagrams
Overview of UML Diagrams
 
analysis and design with uml
analysis and design with umlanalysis and design with uml
analysis and design with uml
 
Sequence diagrams
Sequence diagramsSequence diagrams
Sequence diagrams
 
State Diagrams
State DiagramsState Diagrams
State Diagrams
 
Uml deployment diagram
Uml deployment diagramUml deployment diagram
Uml deployment diagram
 
Uml in software engineering
Uml in software engineeringUml in software engineering
Uml in software engineering
 
Communication diagram Introduction
Communication diagram IntroductionCommunication diagram Introduction
Communication diagram Introduction
 
Object oriented analysis and design unit- iii
Object oriented analysis and design unit- iiiObject oriented analysis and design unit- iii
Object oriented analysis and design unit- iii
 
INTRODUCTION TO UML DIAGRAMS
INTRODUCTION TO UML DIAGRAMSINTRODUCTION TO UML DIAGRAMS
INTRODUCTION TO UML DIAGRAMS
 
Uml class-diagram
Uml class-diagramUml class-diagram
Uml class-diagram
 
UNIFIED MODELING LANGUAGE
UNIFIED MODELING LANGUAGEUNIFIED MODELING LANGUAGE
UNIFIED MODELING LANGUAGE
 

Ähnlich wie UML Diagrams: State Diagram & Activity Diagram

Slide 6 Activity Diagram
Slide 6 Activity DiagramSlide 6 Activity Diagram
Slide 6 Activity DiagramNiloy Rocker
 
Uml Activity Diagram
Uml Activity DiagramUml Activity Diagram
Uml Activity DiagramNiloy Rocker
 
ACTIVITY DIAGRAM.pptx
ACTIVITY DIAGRAM.pptxACTIVITY DIAGRAM.pptx
ACTIVITY DIAGRAM.pptxdevboris1
 
Software Engineering :Behavioral Modelling - II State diagram
Software Engineering :Behavioral Modelling - II State diagramSoftware Engineering :Behavioral Modelling - II State diagram
Software Engineering :Behavioral Modelling - II State diagramAjit Nayak
 
Unit 3(advanced state modeling & interaction meodelling)
Unit  3(advanced state modeling & interaction meodelling)Unit  3(advanced state modeling & interaction meodelling)
Unit 3(advanced state modeling & interaction meodelling)Manoj Reddy
 
Unit three Advanced State Modelling
Unit three Advanced State ModellingUnit three Advanced State Modelling
Unit three Advanced State ModellingDr Chetan Shelke
 
483-Final-Harel_ Statechart & UML.pptx
483-Final-Harel_ Statechart & UML.pptx483-Final-Harel_ Statechart & UML.pptx
483-Final-Harel_ Statechart & UML.pptxAlfazUddin6
 
Activity diagram model
Activity diagram modelActivity diagram model
Activity diagram modelahmed zewita
 
3 interaction and_state_modeling
3 interaction and_state_modeling3 interaction and_state_modeling
3 interaction and_state_modelingMinal Maniar
 
Unit III Dynamic and Implementation UML Diagrams.pptx
Unit III Dynamic and Implementation UML Diagrams.pptxUnit III Dynamic and Implementation UML Diagrams.pptx
Unit III Dynamic and Implementation UML Diagrams.pptxanguraju1
 
LECTURE 9 (Week 5) - Behavioral Diagrams.pptx
LECTURE 9 (Week 5) - Behavioral Diagrams.pptxLECTURE 9 (Week 5) - Behavioral Diagrams.pptx
LECTURE 9 (Week 5) - Behavioral Diagrams.pptxMuneerUmar3
 
Software engineering rogers pressman chapter 7
Software engineering rogers pressman chapter 7Software engineering rogers pressman chapter 7
Software engineering rogers pressman chapter 7mohammad hossein Jalili
 

Ähnlich wie UML Diagrams: State Diagram & Activity Diagram (20)

Slide 6 Activity Diagram
Slide 6 Activity DiagramSlide 6 Activity Diagram
Slide 6 Activity Diagram
 
Uml Activity Diagram
Uml Activity DiagramUml Activity Diagram
Uml Activity Diagram
 
ACTIVITY DIAGRAM.pptx
ACTIVITY DIAGRAM.pptxACTIVITY DIAGRAM.pptx
ACTIVITY DIAGRAM.pptx
 
Activity diag
Activity diagActivity diag
Activity diag
 
Software Engineering :Behavioral Modelling - II State diagram
Software Engineering :Behavioral Modelling - II State diagramSoftware Engineering :Behavioral Modelling - II State diagram
Software Engineering :Behavioral Modelling - II State diagram
 
Unit 3(advanced state modeling & interaction meodelling)
Unit  3(advanced state modeling & interaction meodelling)Unit  3(advanced state modeling & interaction meodelling)
Unit 3(advanced state modeling & interaction meodelling)
 
Java
Java   Java
Java
 
Uml basic
Uml basicUml basic
Uml basic
 
Unit three Advanced State Modelling
Unit three Advanced State ModellingUnit three Advanced State Modelling
Unit three Advanced State Modelling
 
483-Final-Harel_ Statechart & UML.pptx
483-Final-Harel_ Statechart & UML.pptx483-Final-Harel_ Statechart & UML.pptx
483-Final-Harel_ Statechart & UML.pptx
 
Activity diagram model
Activity diagram modelActivity diagram model
Activity diagram model
 
Diagrams
DiagramsDiagrams
Diagrams
 
3 interaction and_state_modeling
3 interaction and_state_modeling3 interaction and_state_modeling
3 interaction and_state_modeling
 
Unit III Dynamic and Implementation UML Diagrams.pptx
Unit III Dynamic and Implementation UML Diagrams.pptxUnit III Dynamic and Implementation UML Diagrams.pptx
Unit III Dynamic and Implementation UML Diagrams.pptx
 
Activity Diagram part8
Activity Diagram part8Activity Diagram part8
Activity Diagram part8
 
State modeling
State modelingState modeling
State modeling
 
Uml sequence diagrams
Uml sequence diagramsUml sequence diagrams
Uml sequence diagrams
 
LECTURE 9 (Week 5) - Behavioral Diagrams.pptx
LECTURE 9 (Week 5) - Behavioral Diagrams.pptxLECTURE 9 (Week 5) - Behavioral Diagrams.pptx
LECTURE 9 (Week 5) - Behavioral Diagrams.pptx
 
Software engineering rogers pressman chapter 7
Software engineering rogers pressman chapter 7Software engineering rogers pressman chapter 7
Software engineering rogers pressman chapter 7
 
Uml
UmlUml
Uml
 

Mehr von Baskarkncet

Mehr von Baskarkncet (18)

Unit_I.pptx
Unit_I.pptxUnit_I.pptx
Unit_I.pptx
 
Cocomo model
Cocomo modelCocomo model
Cocomo model
 
Unit 1
Unit 1Unit 1
Unit 1
 
HCI
HCIHCI
HCI
 
03 x files
03 x files03 x files
03 x files
 
03 namespace
03 namespace03 namespace
03 namespace
 
02 xml schema
02 xml schema02 xml schema
02 xml schema
 
02 well formed and valid documents
02 well formed and valid documents02 well formed and valid documents
02 well formed and valid documents
 
00 introduction
00 introduction00 introduction
00 introduction
 
01 xml document structure
01 xml document structure01 xml document structure
01 xml document structure
 
10 component diagram
10 component diagram10 component diagram
10 component diagram
 
07 interaction diagrams
07 interaction diagrams07 interaction diagrams
07 interaction diagrams
 
06 class diagrams
06 class diagrams06 class diagrams
06 class diagrams
 
05 use case
05 use case05 use case
05 use case
 
03 unified process
03 unified process03 unified process
03 unified process
 
02 uml
02 uml02 uml
02 uml
 
04 uml diagrams
04 uml diagrams04 uml diagrams
04 uml diagrams
 
01 introduction
01 introduction01 introduction
01 introduction
 

Kürzlich hochgeladen

Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduitsrknatarajan
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 

Kürzlich hochgeladen (20)

Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 

UML Diagrams: State Diagram & Activity Diagram

  • 1. UNIT I UML DIAGRAMS Introduction to OOAD – Unified Process – UML diagrams – Use Case – Class Diagrams– Interaction Diagrams – State Diagrams – Activity Diagrams – Package, component and Deployment Diagrams.
  • 2. State Diagram Describe all of the possible states that a particular object can get into and how the object's state changes as a result of events that reach the object.
  • 3. Overview • State Diagram  Model the dynamic aspect of a system – Define different states of an object during its lifetime. – Describes the flow of control from one state to another state. • A Statechart diagram describes a state machine. • A state machine can be defined as a machine – It defines different states of an object and These states are controlled by external or internal events.
  • 4. Purpose • To model dynamic aspect of a system. • To model life time of a reactive system. • To describe different states of an object during its life time. • Define a state machine to model states of an object.
  • 5. Points to be Clarified • Before a Statechart diagram, clarified the following points: 1. Identify important objects to be analyzed. 2. Identify the states. • A state is the condition of an object at a moment in time—the time between events 3.Identify the events. An event is a significant or noteworthy occurrence. For example: A telephone receiver is taken off the hook Transition: • A transition is a relationship between two states that indicates that when an event occurs, the object moves from the prior state to the subsequent state.
  • 6. Transitions are shown as arrows, labeled with their event. States are shown in rounded rectangles.
  • 7. Subject of a Statechart Diagram: A statechart diagram may be applied to a variety of UML elements, including: • classes (conceptual or software) • use cases Since an entire "system" may be represented by a class, it too may have its own statechart diagram.
  • 8. Basic notational elements • Filled circle – Represent the initial state • Hollow circle containing a smaller filled circle, – Indicate the final state (if any) • Rounded rectangle – Denote a state. • Arrow, denoting transition.
  • 9. How to Draw: State Diagrams Activity section of the state symbol depicts what activities the object will be doing while it is in that state.
  • 10. How to Draw: State Diagrams Conditions based on the activities can determine what the next state the object transitions to.
  • 11. Example: State Diagrams When the object enters the Checking state it performs the activity "check items." After the activity is completed the object transitions to next state based on conditions [all items available] or [an item is not available]. If an item is not available the order is canceled. If all items are available then the order is dispatched. In Dispatching state the activity "initiate delivery" is performed. After this activity is complete the object transitions to the Delivered state.
  • 12. Super-State • State diagrams can also show a super-state for the object. • A super-state is used when many transitions lead to the a certain state. • Instead of showing all transitions from each state to the redundant state – A super-state can be used to show that all the states inside of the super-state can transition to the redundant state. • This helps make the state diagram easier to read.
  • 13. Super-State • Both Checking and Dispatching states can transition into Canceled state • So a transition is shown from a super-state named Active to the state Cancel.
  • 14.
  • 16. Main Usage of State Diagram 1. To model object states of a system. 2. To model reactive system. – Reactive system consists of reactive objects. 1. To identify events responsible for state changes. 2. Forward and reverse engineering.
  • 17. Activity Diagram A flow chart to represent the flow form one activity to another activity.
  • 18. A UML activity diagram offers rich notation to show a sequence of activities.
  • 19.
  • 20. Overview • Activity diagram is used – To show message flow from one activity to another. • Activity is a particular operation of the system. • Purposes of 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.
  • 21. Purpose • 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.
  • 22. 05 October, 2007 Information System Design IT60105, Autumn 2007 Basic Components in an Activity Diagram • Initial node – The filled circle is the starting point of the diagram • Final node – The filled circle with a boarder is the ending point. An activity diagram can have zero or more activity final state. • Activity – The rounded circle represents activities that occur. An activity is not necessarily a program, it may be a manual thing also • Flow/ edge – The arrows in the diagram. No label is necessary R e c e iv e d f o r m P a y m e n t f e e s H o s t e l a llo t m e n t I s s u e id e n t it y c a r d M e d ic a l c h e c k I s s u e lib r a r y c a r d
  • 23. 05 October, 2007 Information System Design IT60105, Autumn 2007 Basic Components in an Activity Diagram • Fork – A black bar ( horizontal/vertical ) with one flow going into it and several leaving it. This denotes the beginning of parallel activities • Join – A block bar with several flows entering it and one leaving it. this denotes the end of parallel activities • Merge – A diamond with several flows entering and one leaving. The implication is that all incoming flow to reach this point until processing continues R e c e iv e d f o r m P a y m e n t f e e s H o s t e l a llo t m e n t I s s u e id e n t it y c a r d M e d ic a l c h e c k I s s u e lib r a r y c a r d
  • 24. 05 October, 2007 Information System Design IT60105, Autumn 2007 Basic Components in an Activity Diagram • Difference between Join and Merge – A join is different from a merge in that the join synchronizes two inflows and produces a single outflow. The outflow from a join cannot execute until all inflows have been received – A merge passes any control flows straight through it. If two or more inflows are received by a merge symbol, the action pointed to by its outflow is executed two or more times
  • 25. 05 October, 2007 Information System Design IT60105, Autumn 2007 Basic Components in an Activity Diagram • Decision – A diamond with one flow entering and several leaving. The flow leaving includes conditions as yes/ no state • Flow final – The circle with X though it. This indicates that Process stop at this point • Swim lane – A partition in activity diagram by means of dashed line, called swim lane. This swim lane may be horizontal or vertical R e c e iv e d f o r m P a y m e n t f e e s H o s te l a llo t m e n t I s s u e id e n t it y c a r d M e d ic a l c h e c k I s s u e lib r a r y c a r d
  • 26. Points to be Clarified • Before drawing an activity diagram, identify the following elements: 1. Activities 2. Association 3. Conditions 4. Constraints • Once these mentioned parameters are identified – Make a mental layout of the entire flow. • This mental layout is then transformed into an activity diagram.
  • 27. Main usages of activity diagram • Modeling work flow by using activities. • Modeling business requirements. • High level understanding of the system's functionalities. • Investigate business requirements at a later stage.
  • 28. Basic Activity Diagram Notations • A black circle represents the start (initial state) of the workflow; • An encircled black circle represents the end (final state). • Rounded rectangles represent actions; • Diamonds represent decisions; • Bars represent the start (split) or end (join) of concurrent activities; Arrows run from the start towards  the end and represent the order in which  activities happen.
  • 29. Example • Order management system – 4 activities are identified which are associated with conditions 1. Send order by the customer 2. Receipt of the order 3. Confirm order 4. Dispatch order
  • 30. After receiving the order request Condition checks are performed to check if it is normal or special order. After the type of order is identified  Dispatch activity is performed  and that is marked as  the termination of the process