SlideShare a Scribd company logo
1 of 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
08 state diagram and activity diagram
08 state diagram and activity diagram
08 state diagram and activity diagram
08 state diagram and activity diagram

More Related Content

What's hot

5.state diagrams
5.state diagrams5.state diagrams
5.state diagramsAPU
 
Uml Presentation
Uml PresentationUml Presentation
Uml Presentationmewaseem
 
CS8592 Object Oriented Analysis & Design - UNIT I
CS8592 Object Oriented Analysis & Design - UNIT ICS8592 Object Oriented Analysis & Design - UNIT I
CS8592 Object Oriented Analysis & Design - UNIT Ipkaviya
 
UNIFIED MODELING LANGUAGE
UNIFIED MODELING LANGUAGEUNIFIED MODELING LANGUAGE
UNIFIED MODELING LANGUAGERaval Chirag
 
Object diagram
Object diagramObject diagram
Object diagramRahul Pola
 
Sequence diagram
Sequence diagramSequence diagram
Sequence diagramRahul Pola
 
Overview of UML Diagrams
Overview of UML DiagramsOverview of UML Diagrams
Overview of UML DiagramsManish Kumar
 
Unt 3 attributes, methods, relationships-1
Unt 3 attributes, methods, relationships-1Unt 3 attributes, methods, relationships-1
Unt 3 attributes, methods, relationships-1gopal10scs185
 
Slide 4 Interaction Diagram
Slide 4 Interaction DiagramSlide 4 Interaction Diagram
Slide 4 Interaction DiagramNiloy Rocker
 
Collaboration diagram- UML diagram
Collaboration diagram- UML diagram Collaboration diagram- UML diagram
Collaboration diagram- UML diagram Ramakant Soni
 
Sequence diagram- UML diagram
Sequence diagram- UML diagramSequence diagram- UML diagram
Sequence diagram- UML diagramRamakant Soni
 
Basic concepts of object oriented programming
Basic concepts of object oriented programmingBasic concepts of object oriented programming
Basic concepts of object oriented programmingSachin Sharma
 
Dynamic and Static Modeling
Dynamic and Static ModelingDynamic and Static Modeling
Dynamic and Static ModelingSaurabh Kumar
 
Object Oriented Design Concept
Object Oriented Design ConceptObject Oriented Design Concept
Object Oriented Design ConceptSharath g
 

What's hot (20)

Object diagram
Object diagramObject diagram
Object diagram
 
5.state diagrams
5.state diagrams5.state diagrams
5.state diagrams
 
Uml Presentation
Uml PresentationUml Presentation
Uml Presentation
 
CS8592 Object Oriented Analysis & Design - UNIT I
CS8592 Object Oriented Analysis & Design - UNIT ICS8592 Object Oriented Analysis & Design - UNIT I
CS8592 Object Oriented Analysis & Design - UNIT I
 
CS8592-OOAD Lecture Notes Unit-2
CS8592-OOAD Lecture Notes Unit-2CS8592-OOAD Lecture Notes Unit-2
CS8592-OOAD Lecture Notes Unit-2
 
Class diagrams
Class diagramsClass diagrams
Class diagrams
 
UNIFIED MODELING LANGUAGE
UNIFIED MODELING LANGUAGEUNIFIED MODELING LANGUAGE
UNIFIED MODELING LANGUAGE
 
Object diagram
Object diagramObject diagram
Object diagram
 
Sequence diagram
Sequence diagramSequence diagram
Sequence diagram
 
Overview of UML Diagrams
Overview of UML DiagramsOverview of UML Diagrams
Overview of UML Diagrams
 
Unt 3 attributes, methods, relationships-1
Unt 3 attributes, methods, relationships-1Unt 3 attributes, methods, relationships-1
Unt 3 attributes, methods, relationships-1
 
Slide 4 Interaction Diagram
Slide 4 Interaction DiagramSlide 4 Interaction Diagram
Slide 4 Interaction Diagram
 
Computer Science-Data Structures :Abstract DataType (ADT)
Computer Science-Data Structures :Abstract DataType (ADT)Computer Science-Data Structures :Abstract DataType (ADT)
Computer Science-Data Structures :Abstract DataType (ADT)
 
Collaboration diagram- UML diagram
Collaboration diagram- UML diagram Collaboration diagram- UML diagram
Collaboration diagram- UML diagram
 
Sequence diagram- UML diagram
Sequence diagram- UML diagramSequence diagram- UML diagram
Sequence diagram- UML diagram
 
Basic concepts of object oriented programming
Basic concepts of object oriented programmingBasic concepts of object oriented programming
Basic concepts of object oriented programming
 
Dynamic and Static Modeling
Dynamic and Static ModelingDynamic and Static Modeling
Dynamic and Static Modeling
 
Introduction to UML
Introduction to UMLIntroduction to UML
Introduction to UML
 
Object Oriented Design Concept
Object Oriented Design ConceptObject Oriented Design Concept
Object Oriented Design Concept
 
Functional modeling
Functional modelingFunctional modeling
Functional modeling
 

Similar to 08 state diagram and 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
 

Similar to 08 state diagram and 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
 
CS8592-OOAD Lecture Notes Unit-3
CS8592-OOAD Lecture Notes Unit-3CS8592-OOAD Lecture Notes Unit-3
CS8592-OOAD Lecture Notes Unit-3
 
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
 

More from Baskarkncet

More from Baskarkncet (20)

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
 
11 deployment diagrams
11 deployment diagrams11 deployment diagrams
11 deployment diagrams
 
10 component diagram
10 component diagram10 component diagram
10 component diagram
 
09 package diagram
09 package diagram09 package diagram
09 package 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
 

Recently uploaded

University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756dollysharma2066
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdfKamal Acharya
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startQuintin Balsdon
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoordharasingh5698
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdfSuman Jyoti
 
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
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueBhangaleSonal
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
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
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01KreezheaRecto
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptNANDHAKUMARA10
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptMsecMca
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 

Recently uploaded (20)

University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
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
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
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
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
 

08 state diagram and 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