SlideShare a Scribd company logo
1 of 22
Nested state Diagrams: its having few problems
1. Problem with flat state diagram: cant sow processing
within the processing (state diagram inside the state
diagram)
2. Expanding State: Expanding state diagram with additional
states diagram called Submachine.
Submachine: It is a state diagram that may be invoked as part of
another state diagram.
Nested States: A state inside the state.
Composite state: The Composite state name labels the outer
contour that Entirely encloses the nested state.
Active State is a composite state with regard to nested states.
Advanced State Modeling
Idle
Disconnected
TimeOut
do/ Sound Beep
Dial Tone
do/ check con.
Dialing
Connecting
Ringing
Connected
Warning
Do/ Play Msg
Recorded Msg
do/ play msg
Busy Tone
do/ selected
busy tone
ACTIVE
Phone Line
Repeat
Nested States for Phone line
REVERSENEUTRAL
FORWARD
Car Transmission Nested States for Phone line
SSECONDFIRST THIRD FOURTH
reverse
Push neutral
up up up
downdowndown
up down
Concurrency: Objects are Autonomous entities that can
ACT and CHANGE state independent of one another.
But sometime Object are also DEPENDANT on another Object
causes corresponding state changed.
Aggregation Concurrency: also called “and relationship”
The Aggregate states: corresponds to the combined states of all the parts.
A State diagram for an assembly is a collection of state diagrams.
REVERSENEUTRAL
FORWARD
TRANSMISSION Nested States for Phone line
SSECONDFIRST THIRD FOURTH
reverse
Push neutral
up up up
downdowndown
up down
CAR
BRAKESACCELERATIONTRANSMISSIONIGNITION
STARTING
IGNITION
ONOFF
Relation of class and State Model:
• State model describe the Behavior of the objects of given class
• State structure is related to and constrained by class structure.
• A object may have different state over time.
• A composite state is the aggregation of more than one concurrent
sub state.
• Three source of concurrency:
• First is aggregation of objects
• Aggregation within an object
• Concurrent behavior of object
• State model of a class is inherited by its subclasses
• The subclasses inherit both the states of the ancestor and the
transitions
• The signal hierarchy is independent of the class hierarchy
• States are defined by classes and objects
• Signals are more fundamental than states and more parallel to
classes.
Interaction Modeling
Structural Model : Class and Object diagrams
Behavioral Model : State Diagrams
Interaction Model : Use Cases/sequence/activity dig.
But for Full Behavior : State + Interaction diagrams.
Use Cases (Interaction Diagrams):
1. Use cases help to capture the informal requirements.
2. The interaction modeling is the third leg of modeling.
3. Describe how object interact to produce useful result.
4. Interaction can be modeled at different level of
abstraction.
5. Use cases explain how system interacts with outside actor
Sequence Diagram:
• It provide more detail and show the message exchanged among a
set of objects over time.
• Message include both asynchronous signal and procedure calls.
• Sequence Diagrams are good for showing the behavior sequence
seen by users of a system.
Activity Diagram:
• It provide further details and show the flow of control among the
steps of executions/ Computation.
• It show both Data Flow and Control flow.
• It Documents the all necessary steps to implements an operation or
a business process referenced in a sequence diagrams.
Actor:
An Actor is a direct external user of a system- an object or set of
objects that communicates directly with the system but that is not a
part of system.
Use Cases:
• A use cases is a coherent piece of functionality that a system can provide by
interacting with actors.
• A use cases involves the sequence of message among the system and its
actors.
• Some use cases have fixed sequence of message.
• Error conditions are also part of use cases.
• A use cases bring together all the behavior relevant to a slice of system
functionality.
• Use cases may partition the functionality of the system.
Use Cases Diagram:
Forms Table Schema
Guidelines for Use Case Model:
1. First determine the System boundary: identify cases and
users
2. Ensure that actors are focused: Actors implement as per
their work not by their no.
3. Each Use Case must provide value to users: represent
complete functionality, Interaction and Transaction.
4. Relate Use Cases and Actors: Must have at least one
Actor in Use Cases and each actor must have to participate
in Use Cases.
5. Remember that Use Case are informal: implements user
point of view.
6. Use Case can be Structured: smaller fragments using
relationship.
Sequence Model:
Scenario: it is a sequence of events that occurs during one
particular execution of a system such as for a use cases. Eg. User
authentication process
Sequence Diagram: shows the
• participants in interactions
• Sequence of message among them.
Sequence Diagram show the interaction of a system with the actors to
perform all or part of use case.
Each Actor as well as system is represented by a Vertical line called
LIFELINE and each Message by Horizontal Arrow from sender to
receiver.
Guidelines for Sequence Model:
1. Prepare at least one scenario per use case.
2. Abstract the scenario into sequence diagram
3. Divide complex interactions
4. Prepare a sequence diagrams for each error conditions.
Customer Broker NSE/BSE
Log In
Secure Communication
Display portfolio
Enter purchase Data
Request Confirmation
Confirm Order
Place Order
Display order no / info
Log Out
Report Result to Trade
Display Goods bought
Sequence diagram for share Trading/online stock broker
Activity Models: shows the
• Sequence of steps that makes up a complex process such as
algorithms or workflow.
• Show steps of computation or processing steps
• Shows data flow and control flow. (business flow)
An activity diagram is like a traditional flowchart in that it shows the
flows of control from steps to steps.
1. Activities: the steps of activity diagrams are
Operations/Computations. The purpose of activity diagram is to
show the steps within a complex process and sequence constraints
among them.
2. Branches: if there is more than one successor to an activity then
each arrow may be labeled with a condition in square brackets
(called Branches)
3. Initiation and Termination: A solid circle with outgoing arrow
shows starting point and Bull Eyes shows end points.
4. Executable activity: transfer of control during execution
5. Concurrent activity: computer separately but deliver at same time
Verify order
Execute order
Debit Account
Settle Account
Close Order
Send
confirmation
Update
Portfolio
Send failure
notice
[Success]
[Failure]
Activity
diagram for
online trade
processing
Find Seller at
Market Price
Find buyer at
Market price
Find buyer at
limit price or
better
Find seller at
limit price or
better
[Market Order]
[Buying][Selling]
[Selling] [Buying]
[Price availability]
[Limit order]
[Timeout]
[Price not available]
[order still active]
Guidelines for Activity Diagram:
1. Don’t misuse activity diagrams: develop use it to study
the algorithms and workflow
2. Level diagrams: should shows level of Execution
(Preprocessing/processing/Post Processing)
3. Careful about branches and conditions
4. Careful about Concurrent activities
5. Consider executable activity diagrams
Use cases Relationship:
Include Relationship: It incorporate (bind) one use cases within
the behavior sequence of another use cases.
An include use case is also like SUBROUTINE.
Extend Relationship: It adds incremental behavior to use case.
Secure
Session
Edit
Password
Update
Password
Trade Stock
Intraday Delivery
Future/
Option
<<include>>
<<include>>
<<extend>>
<<extend>>
<<extend>>
Use cases Relationship:
Generalization: It show specific variations on a general use case. It
convert analogous to Generalization among classes.
Parent use case represents general behavior and child use case extend
the parent one.
Guidelines for use case relationship:
1. Use case Generalization:
2. Use case Inclusion
3. Use case Extension
4. Include relationship vs. extend Relationship
Make Trade
Trade
Bonds
Trade
Stocks
Commodity
Make Trade
Trade
Bonds
Trade
Stocks
Commodity
Intraday Delivery
Future/
Option
<<extend>>
<<extend>>
<<extend>>
Secure
Session
Edit
Password
Update
Password
<<include>> <<include>>
Customer NSE/BSE
Stock Brokerage System
Combination of Use Case Relationship
Procedural sequence Model:
Sequence Diagrams with Passive Objects:
• All objects are not active.
• Most objects are passive and do not have their own threads of control
• A passive objects is not activated until it has been called.
• Once execution of an object complete and control returns to the caller
then the passive object becomes inactive.
Waiter Kitchen Table Bill Table
Kitchen Service
Food
Customer Order
Calculate Bill
Bill and Payments Slip
Food & Bill
Activation / Focus of Control:
The period of time for an object execution as a thin rectangle. This is
called the Activation or Focus of Control.
Lifeline:
The entire period during which the object exist is called Lifeline
Sequence Diagrams with Transient Objects:
Object A Object B
Object C
Compute E(c, d)
Final Result
Result
Create C (arg)
Operation E(m, n)
Guidelines for procedural Sequence Models:
1. Active vs Passive Objects
2. Advanced Features
Special Constructs for Activity Models:
Sending and receiving Signals:
Boot Sequence
User Login
Wait for response
Ready
Network
Request Validation
Receive confir.
Swimlanes: Make sufficient Partition of activities among Organizations.
Object Flows:
• If there is object flow then there is no meaning to draw control flow.
• Objects passes through several states during execution so object flow
is essential sometime.
• If object have state name then both control flow and propagation of
object from state to state is shown by activity diagram.
Flight Attendant Ground staff Catering
Clean
floor
Add
fuel
Load
foods
CAR Arrive CAR Stop
Activity diagram with Object Flow
Activity diagram with Swimlanes

More Related Content

What's hot

Unit 2(advanced class modeling & state diagram)
Unit  2(advanced class modeling & state diagram)Unit  2(advanced class modeling & state diagram)
Unit 2(advanced class modeling & state diagram)Manoj Reddy
 
CS8592-OOAD Lecture Notes Unit-3
CS8592-OOAD Lecture Notes Unit-3CS8592-OOAD Lecture Notes Unit-3
CS8592-OOAD Lecture Notes Unit-3Gobinath Subramaniam
 
Deadlock management
Deadlock managementDeadlock management
Deadlock managementAhmed kasim
 
Component Diagram
Component DiagramComponent Diagram
Component DiagramManas Shukla
 
Uml Activity Diagram
Uml Activity DiagramUml Activity Diagram
Uml Activity DiagramNiloy Rocker
 
Importance & Principles of Modeling from UML Designing
Importance & Principles of Modeling from UML DesigningImportance & Principles of Modeling from UML Designing
Importance & Principles of Modeling from UML DesigningABHISHEK KUMAR
 
Interaction Modeling
Interaction ModelingInteraction Modeling
Interaction ModelingHemant Sharma
 
Sequence diagram- UML diagram
Sequence diagram- UML diagramSequence diagram- UML diagram
Sequence diagram- UML diagramRamakant Soni
 
Overview of Concurrency Control & Recovery in Distributed Databases
Overview of Concurrency Control & Recovery in Distributed DatabasesOverview of Concurrency Control & Recovery in Distributed Databases
Overview of Concurrency Control & Recovery in Distributed DatabasesMeghaj Mallick
 
UML and Software Modeling Tools.pptx
UML and Software Modeling Tools.pptxUML and Software Modeling Tools.pptx
UML and Software Modeling Tools.pptxNwabueze Obioma
 
Distributed Transaction
Distributed TransactionDistributed Transaction
Distributed TransactionPratik Tambekar
 
Use case Diagram
Use case DiagramUse case Diagram
Use case DiagramPreeti Mishra
 
Concurrency control
Concurrency controlConcurrency control
Concurrency controlSoumyajit Dutta
 
Unified modelling language (UML)
Unified modelling language (UML)Unified modelling language (UML)
Unified modelling language (UML)Hirra Sultan
 
Uml diagrams
Uml diagramsUml diagrams
Uml diagramsbarney92
 
Sequence diagram
Sequence diagramSequence diagram
Sequence diagramRahul Pola
 

What's hot (20)

Unit 2(advanced class modeling & state diagram)
Unit  2(advanced class modeling & state diagram)Unit  2(advanced class modeling & state diagram)
Unit 2(advanced class modeling & state diagram)
 
CS8592-OOAD Lecture Notes Unit-3
CS8592-OOAD Lecture Notes Unit-3CS8592-OOAD Lecture Notes Unit-3
CS8592-OOAD Lecture Notes Unit-3
 
Deadlock management
Deadlock managementDeadlock management
Deadlock management
 
Component Diagram
Component DiagramComponent Diagram
Component Diagram
 
Uml Activity Diagram
Uml Activity DiagramUml Activity Diagram
Uml Activity Diagram
 
Importance & Principles of Modeling from UML Designing
Importance & Principles of Modeling from UML DesigningImportance & Principles of Modeling from UML Designing
Importance & Principles of Modeling from UML Designing
 
State Diagrams
State DiagramsState Diagrams
State Diagrams
 
Interaction Modeling
Interaction ModelingInteraction Modeling
Interaction Modeling
 
Sequence diagram- UML diagram
Sequence diagram- UML diagramSequence diagram- UML diagram
Sequence diagram- UML diagram
 
Oomd unit1
Oomd unit1Oomd unit1
Oomd unit1
 
Overview of Concurrency Control & Recovery in Distributed Databases
Overview of Concurrency Control & Recovery in Distributed DatabasesOverview of Concurrency Control & Recovery in Distributed Databases
Overview of Concurrency Control & Recovery in Distributed Databases
 
UML and Software Modeling Tools.pptx
UML and Software Modeling Tools.pptxUML and Software Modeling Tools.pptx
UML and Software Modeling Tools.pptx
 
Distributed Transaction
Distributed TransactionDistributed Transaction
Distributed Transaction
 
Use case Diagram
Use case DiagramUse case Diagram
Use case Diagram
 
UML Diagrams
UML DiagramsUML Diagrams
UML Diagrams
 
Sequence Diagram
Sequence DiagramSequence Diagram
Sequence Diagram
 
Concurrency control
Concurrency controlConcurrency control
Concurrency control
 
Unified modelling language (UML)
Unified modelling language (UML)Unified modelling language (UML)
Unified modelling language (UML)
 
Uml diagrams
Uml diagramsUml diagrams
Uml diagrams
 
Sequence diagram
Sequence diagramSequence diagram
Sequence diagram
 

Similar to Nested state diagrams: advantages of submachines and concurrency

3 interaction and_state_modeling
3 interaction and_state_modeling3 interaction and_state_modeling
3 interaction and_state_modelingMinal Maniar
 
Intoduction to uml
Intoduction to umlIntoduction to uml
Intoduction to umlMahesh Bhalerao
 
Presentation Use Case Diagram and Use Case Specification.pptx
Presentation Use Case Diagram and Use Case Specification.pptxPresentation Use Case Diagram and Use Case Specification.pptx
Presentation Use Case Diagram and Use Case Specification.pptxazida3
 
CASE Tools lab.ppt
CASE Tools lab.pptCASE Tools lab.ppt
CASE Tools lab.pptRAJESH S
 
Fundamentals of Software Engineering
Fundamentals of Software Engineering Fundamentals of Software Engineering
Fundamentals of Software Engineering Madhar Khan Pathan
 
conversion-gate02.pptx
conversion-gate02.pptxconversion-gate02.pptx
conversion-gate02.pptxNouraBaccar1
 
Use Case Diagram
Use Case DiagramUse Case Diagram
Use Case DiagramKumar
 
Basic Behavioral Modeling
Basic Behavioral ModelingBasic Behavioral Modeling
Basic Behavioral ModelingAMITJain879
 
SE18_Lec 10_ UML Behaviour and Interaction Diagrams
SE18_Lec 10_ UML Behaviour and Interaction DiagramsSE18_Lec 10_ UML Behaviour and Interaction Diagrams
SE18_Lec 10_ UML Behaviour and Interaction DiagramsAmr E. Mohamed
 
05 use case
05 use case05 use case
05 use caseBaskarkncet
 
UML.pptx
UML.pptxUML.pptx
UML.pptxRAJESH S
 
Use case diagrams
Use case diagramsUse case diagrams
Use case diagramsMir Majid
 
ACTIVITY DIAGRAM.pptx
ACTIVITY DIAGRAM.pptxACTIVITY DIAGRAM.pptx
ACTIVITY DIAGRAM.pptxdevboris1
 
Lecture7 use case modeling
Lecture7 use case modelingLecture7 use case modeling
Lecture7 use case modelingShahid Riaz
 
unified modeling language diagrams
unified modeling language diagramsunified modeling language diagrams
unified modeling language diagramsmuhammadali0014
 

Similar to Nested state diagrams: advantages of submachines and concurrency (20)

3 interaction and_state_modeling
3 interaction and_state_modeling3 interaction and_state_modeling
3 interaction and_state_modeling
 
Intoduction to uml
Intoduction to umlIntoduction to uml
Intoduction to uml
 
Presentation Use Case Diagram and Use Case Specification.pptx
Presentation Use Case Diagram and Use Case Specification.pptxPresentation Use Case Diagram and Use Case Specification.pptx
Presentation Use Case Diagram and Use Case Specification.pptx
 
Use case modeling
Use case modelingUse case modeling
Use case modeling
 
CASE Tools lab.ppt
CASE Tools lab.pptCASE Tools lab.ppt
CASE Tools lab.ppt
 
Use Case UML Diagram
Use Case UML DiagramUse Case UML Diagram
Use Case UML Diagram
 
Fundamentals of Software Engineering
Fundamentals of Software Engineering Fundamentals of Software Engineering
Fundamentals of Software Engineering
 
conversion-gate02.pptx
conversion-gate02.pptxconversion-gate02.pptx
conversion-gate02.pptx
 
Use Case Diagram
Use Case DiagramUse Case Diagram
Use Case Diagram
 
Basic Behavioral Modeling
Basic Behavioral ModelingBasic Behavioral Modeling
Basic Behavioral Modeling
 
SE18_Lec 10_ UML Behaviour and Interaction Diagrams
SE18_Lec 10_ UML Behaviour and Interaction DiagramsSE18_Lec 10_ UML Behaviour and Interaction Diagrams
SE18_Lec 10_ UML Behaviour and Interaction Diagrams
 
05 use case
05 use case05 use case
05 use case
 
UML.pptx
UML.pptxUML.pptx
UML.pptx
 
Use case diagrams
Use case diagramsUse case diagrams
Use case diagrams
 
ACTIVITY DIAGRAM.pptx
ACTIVITY DIAGRAM.pptxACTIVITY DIAGRAM.pptx
ACTIVITY DIAGRAM.pptx
 
Activity diag
Activity diagActivity diag
Activity diag
 
chapter_5_5.ppt
chapter_5_5.pptchapter_5_5.ppt
chapter_5_5.ppt
 
Lecture7 use case modeling
Lecture7 use case modelingLecture7 use case modeling
Lecture7 use case modeling
 
Use case diagram
Use case diagramUse case diagram
Use case diagram
 
unified modeling language diagrams
unified modeling language diagramsunified modeling language diagrams
unified modeling language diagrams
 

Recently uploaded

Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
computer application and construction management
computer application and construction managementcomputer application and construction management
computer application and construction managementMariconPadriquez1
 
Solving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.pptSolving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.pptJasonTagapanGulla
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...Chandu841456
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEroselinkalist12
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfAsst.prof M.Gokilavani
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHC Sai Kiran
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfROCENODodongVILLACER
 
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncWhy does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncssuser2ae721
 
Indian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.pptIndian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.pptMadan Karki
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxk795866
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitterShivangiSharma879191
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 

Recently uploaded (20)

Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
computer application and construction management
computer application and construction managementcomputer application and construction management
computer application and construction management
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Solving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.pptSolving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.ppt
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECH
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdf
 
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncWhy does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
 
Indian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.pptIndian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.ppt
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptx
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 

Nested state diagrams: advantages of submachines and concurrency

  • 1. Nested state Diagrams: its having few problems 1. Problem with flat state diagram: cant sow processing within the processing (state diagram inside the state diagram) 2. Expanding State: Expanding state diagram with additional states diagram called Submachine. Submachine: It is a state diagram that may be invoked as part of another state diagram. Nested States: A state inside the state. Composite state: The Composite state name labels the outer contour that Entirely encloses the nested state. Active State is a composite state with regard to nested states. Advanced State Modeling
  • 2. Idle Disconnected TimeOut do/ Sound Beep Dial Tone do/ check con. Dialing Connecting Ringing Connected Warning Do/ Play Msg Recorded Msg do/ play msg Busy Tone do/ selected busy tone ACTIVE Phone Line Repeat Nested States for Phone line
  • 3. REVERSENEUTRAL FORWARD Car Transmission Nested States for Phone line SSECONDFIRST THIRD FOURTH reverse Push neutral up up up downdowndown up down Concurrency: Objects are Autonomous entities that can ACT and CHANGE state independent of one another. But sometime Object are also DEPENDANT on another Object causes corresponding state changed. Aggregation Concurrency: also called “and relationship” The Aggregate states: corresponds to the combined states of all the parts. A State diagram for an assembly is a collection of state diagrams.
  • 4. REVERSENEUTRAL FORWARD TRANSMISSION Nested States for Phone line SSECONDFIRST THIRD FOURTH reverse Push neutral up up up downdowndown up down CAR BRAKESACCELERATIONTRANSMISSIONIGNITION STARTING IGNITION ONOFF
  • 5. Relation of class and State Model: • State model describe the Behavior of the objects of given class • State structure is related to and constrained by class structure. • A object may have different state over time. • A composite state is the aggregation of more than one concurrent sub state. • Three source of concurrency: • First is aggregation of objects • Aggregation within an object • Concurrent behavior of object • State model of a class is inherited by its subclasses • The subclasses inherit both the states of the ancestor and the transitions • The signal hierarchy is independent of the class hierarchy • States are defined by classes and objects • Signals are more fundamental than states and more parallel to classes.
  • 6. Interaction Modeling Structural Model : Class and Object diagrams Behavioral Model : State Diagrams Interaction Model : Use Cases/sequence/activity dig. But for Full Behavior : State + Interaction diagrams. Use Cases (Interaction Diagrams): 1. Use cases help to capture the informal requirements. 2. The interaction modeling is the third leg of modeling. 3. Describe how object interact to produce useful result. 4. Interaction can be modeled at different level of abstraction. 5. Use cases explain how system interacts with outside actor
  • 7. Sequence Diagram: • It provide more detail and show the message exchanged among a set of objects over time. • Message include both asynchronous signal and procedure calls. • Sequence Diagrams are good for showing the behavior sequence seen by users of a system. Activity Diagram: • It provide further details and show the flow of control among the steps of executions/ Computation. • It show both Data Flow and Control flow. • It Documents the all necessary steps to implements an operation or a business process referenced in a sequence diagrams. Actor: An Actor is a direct external user of a system- an object or set of objects that communicates directly with the system but that is not a part of system.
  • 8. Use Cases: • A use cases is a coherent piece of functionality that a system can provide by interacting with actors. • A use cases involves the sequence of message among the system and its actors. • Some use cases have fixed sequence of message. • Error conditions are also part of use cases. • A use cases bring together all the behavior relevant to a slice of system functionality. • Use cases may partition the functionality of the system. Use Cases Diagram: Forms Table Schema
  • 9. Guidelines for Use Case Model: 1. First determine the System boundary: identify cases and users 2. Ensure that actors are focused: Actors implement as per their work not by their no. 3. Each Use Case must provide value to users: represent complete functionality, Interaction and Transaction. 4. Relate Use Cases and Actors: Must have at least one Actor in Use Cases and each actor must have to participate in Use Cases. 5. Remember that Use Case are informal: implements user point of view. 6. Use Case can be Structured: smaller fragments using relationship.
  • 10. Sequence Model: Scenario: it is a sequence of events that occurs during one particular execution of a system such as for a use cases. Eg. User authentication process Sequence Diagram: shows the • participants in interactions • Sequence of message among them. Sequence Diagram show the interaction of a system with the actors to perform all or part of use case. Each Actor as well as system is represented by a Vertical line called LIFELINE and each Message by Horizontal Arrow from sender to receiver. Guidelines for Sequence Model: 1. Prepare at least one scenario per use case. 2. Abstract the scenario into sequence diagram 3. Divide complex interactions 4. Prepare a sequence diagrams for each error conditions.
  • 11. Customer Broker NSE/BSE Log In Secure Communication Display portfolio Enter purchase Data Request Confirmation Confirm Order Place Order Display order no / info Log Out Report Result to Trade Display Goods bought Sequence diagram for share Trading/online stock broker
  • 12. Activity Models: shows the • Sequence of steps that makes up a complex process such as algorithms or workflow. • Show steps of computation or processing steps • Shows data flow and control flow. (business flow) An activity diagram is like a traditional flowchart in that it shows the flows of control from steps to steps. 1. Activities: the steps of activity diagrams are Operations/Computations. The purpose of activity diagram is to show the steps within a complex process and sequence constraints among them. 2. Branches: if there is more than one successor to an activity then each arrow may be labeled with a condition in square brackets (called Branches) 3. Initiation and Termination: A solid circle with outgoing arrow shows starting point and Bull Eyes shows end points. 4. Executable activity: transfer of control during execution 5. Concurrent activity: computer separately but deliver at same time
  • 13. Verify order Execute order Debit Account Settle Account Close Order Send confirmation Update Portfolio Send failure notice [Success] [Failure] Activity diagram for online trade processing
  • 14. Find Seller at Market Price Find buyer at Market price Find buyer at limit price or better Find seller at limit price or better [Market Order] [Buying][Selling] [Selling] [Buying] [Price availability] [Limit order] [Timeout] [Price not available] [order still active]
  • 15. Guidelines for Activity Diagram: 1. Don’t misuse activity diagrams: develop use it to study the algorithms and workflow 2. Level diagrams: should shows level of Execution (Preprocessing/processing/Post Processing) 3. Careful about branches and conditions 4. Careful about Concurrent activities 5. Consider executable activity diagrams
  • 16. Use cases Relationship: Include Relationship: It incorporate (bind) one use cases within the behavior sequence of another use cases. An include use case is also like SUBROUTINE. Extend Relationship: It adds incremental behavior to use case. Secure Session Edit Password Update Password Trade Stock Intraday Delivery Future/ Option <<include>> <<include>> <<extend>> <<extend>> <<extend>>
  • 17. Use cases Relationship: Generalization: It show specific variations on a general use case. It convert analogous to Generalization among classes. Parent use case represents general behavior and child use case extend the parent one. Guidelines for use case relationship: 1. Use case Generalization: 2. Use case Inclusion 3. Use case Extension 4. Include relationship vs. extend Relationship Make Trade Trade Bonds Trade Stocks Commodity
  • 19. Procedural sequence Model: Sequence Diagrams with Passive Objects: • All objects are not active. • Most objects are passive and do not have their own threads of control • A passive objects is not activated until it has been called. • Once execution of an object complete and control returns to the caller then the passive object becomes inactive. Waiter Kitchen Table Bill Table Kitchen Service Food Customer Order Calculate Bill Bill and Payments Slip Food & Bill
  • 20. Activation / Focus of Control: The period of time for an object execution as a thin rectangle. This is called the Activation or Focus of Control. Lifeline: The entire period during which the object exist is called Lifeline Sequence Diagrams with Transient Objects: Object A Object B Object C Compute E(c, d) Final Result Result Create C (arg) Operation E(m, n)
  • 21. Guidelines for procedural Sequence Models: 1. Active vs Passive Objects 2. Advanced Features Special Constructs for Activity Models: Sending and receiving Signals: Boot Sequence User Login Wait for response Ready Network Request Validation Receive confir.
  • 22. Swimlanes: Make sufficient Partition of activities among Organizations. Object Flows: • If there is object flow then there is no meaning to draw control flow. • Objects passes through several states during execution so object flow is essential sometime. • If object have state name then both control flow and propagation of object from state to state is shown by activity diagram. Flight Attendant Ground staff Catering Clean floor Add fuel Load foods CAR Arrive CAR Stop Activity diagram with Object Flow Activity diagram with Swimlanes