Statechart diagrams  Przemysław Kostyra  Jakub Rypina.

Slides:



Advertisements
Similar presentations
State Diagram 1. State diagram: Shows the behavior of one object. They describe all of the possible states that a particular object can get into and how.
Advertisements

StateChart Diagrams State Machines Overview Change summary –core constructs –notation Examples Backward compatibility User benefits Issues.
State Charts Mehran Najafi. Reactive Systems A reactive, event-driven, object is one whose behavior is best characterized by its response to events dispatched.
Concepts & Notations. Acknowledgements  The material in this tutorial is based in part on: Concurrency: State Models & Java Programming, by Jeff Magee.
Behavioral Modeling: State Diagrams CIS 4800 Kannan Mohan Department of CIS Zicklin School of Business, Baruch College Copyright © 2009 John Wiley & Sons,
Karolina Muszyńska Based on: S. Wrycza, B. Marcinkowski, K. Wyrzykowski „Język UML 2.0 w modelowaniu SI”
State Transition Diagrams Chapter 13
1 Chapter 4 Dynamic Modeling and Analysis (Part I) Object-Oriented Technology From Diagram to Code with Visual Paradigm for UML Curtis H.K. Tsang, Clarence.
1 Chapter 4 Dynamic Modeling and Analysis (Part I) Object-Oriented Technology From Diagram to Code with Visual Paradigm for UML Curtis H.K. Tsang, Clarence.
Interaction Diagrams Activity Diagram State Machine Diagram
SE 555 Software Requirements & Specification 1 Activity Diagrams.
Introduction to UML Part 2 Behavioral Modeling. Sequence (event) diagram Describes object interaction Typically captures behavior of a single use case.
Software modeling for embedded systems: static and dynamic behavior.
State Diagram. What is State Diagram?  State diagram is used to show the state space of a given class, the events that cause a transition from one state.
State Machine Diagrams (State Chart in UML 1) Specifying Control (ref: Chapter 11 Bennett, Mc Robb and Farmer)
1 CS 691z/791z Topics in Software Engineering Chapter 20: Advanced Statechart Modeling [Arlow and Neustadt, 2002] March 8, 2007.
1 UML Component and Deployment Diagrams. Models, Views, and Diagrams Use Case Diagrams Use Case Diagrams Use Case Diagrams Scenario Diagrams Scenario.
1 © Wolfgang Pelz UML2 UML Part 3. 2 © Wolfgang Pelz UML2 Chapter Ten State Machine Diagrams.
THE OBJECT-ORIENTED DESIGN WORKFLOW Statechart Diagrams.
7. 2Object-Oriented Analysis and Design with the Unified Process Objectives  Detailed Object-Oriented Requirements Definitions  System Processes—A Use.
Advanced Behavioral Modeling
Practical Object-Oriented Design with UML 2e Slide 1/1 ©The McGraw-Hill Companies, 2004 PRACTICAL OBJECT-ORIENTED DESIGN WITH UML 2e Chapter 10: Statecharts.
State Machines State diagrams SE-2030 Dr. Rob Hasker 1 Based on slides written by Dr. Mark L. Hornick Used with permission.
Chapter 10 State Machine Diagrams
Chapter 8: Modelling Interactions and Behaviour UML Activity Diagram
מידול התנהגותי 1. Today’s Session Sequence Diagrams State Machines 2.
1 Object-Oriented Modeling Using UML (2) CS 3331 Fall 2009.
Business Informatics Group Institute of Software Technology and Interactive Systems Vienna University of Technology Favoritenstraße 9-11/188-3, 1040 Vienna,
SOFTWARE DESIGN AND ARCHITECTURE LECTURE 25. Review Design Level Class Diagram Identifying classes/Operations/Attributes Associations – Simple associations.
Dynamic Modeling Chapter 11 Part of Analysis Modeling Designing Concurrent, Distributed, and Real-Time Applications with UML Hassan Gomaa (2001)
Object-Oriented Modeling Using UML CS 3331 Section 2.3 of Jia 2003.
State & Activity Diagrams
The Unified Modeling Language Part II Omar Meqdadi SE 2730 Lecture 9 Department of Computer Science and Software Engineering University of Wisconsin-Platteville.
Information System Design IT60105
Chapter 7 The Object-Oriented Approach to Requirements.
Software Engineering Design & Modeling Statechart Diagram.
1 Kyung Hee University Statecharts Spring Kyung Hee University Specifying Objects’ Behaviour  Interaction diagrams show message-passing behaviour.
UML Discussion on State Machines Perfectly static system is intensely uninteresting Because nothing ever happens.
Unified Modeling Language User Guide Section 4 - Basic Behavioral Modeling Chapter 19 – Activity Diagrams.
ATM Adv. SW Engineering
Object Oriented Analysis & Design & UML (Unified Modeling Language)1 Part VI: Design Continuous Activity Diagams State Diagrams.
States.
UML: State Chart Diagrams
State Chart diagram Week objective Describe State chart Diagrams in Dynamic Modelling 2.
Essentials of Visual Modeling w/ UML Instructor Notes
Practical Object-Oriented Design with UML 2e Slide 1/1 ©The McGraw-Hill Companies, 2004 PRACTICAL OBJECT-ORIENTED DESIGN WITH UML 2e Chapter 10: Statecharts.
State Machines State diagrams SE-2030 Dr. Mark L. Hornick 1.
State Machine Diagram Chapter 5 Introduction Pages
 Activity diagram is basically a flow chart to represent the flow from one activity to another activity.
Chapter - 6 Advanced State Modeling
® IBM Software Group © 2009 IBM Corporation Module 11: Creating State Machine Diagrams Essentials of Modeling with IBM Rational Software Architect V7.5.
From requirements to specification Specification is a refinement of requirements Can be included together as Software Requirements Specifications (SRS)
1 Systems Analysis and Design Behavioral Modeling Chapter 8 (Last one before the Midterm!)
UML StateChart Diagrams
Object-oriented and Structured System Models
Dynamic Modeling of Banking System Case Study - I
BM by States class / System
Dynamic Modeling of Banking System Case Study - II
Activity Diagram.
Visit for more Learning Resources
State Machine Diagrams
Chapter 8: Modelling Interactions and Behaviour UML Activity Diagram
Business System Development
UML Activity Diagrams & State Charts
States.
CS/CPE 426 Senior Projects
CS/CPE 426 Senior Projects
States.
CS 791Z State Machines & Advanced State Machines
Modeling Behavior in Statechart Diagrams
Presentation transcript:

Statechart diagrams  Przemysław Kostyra  Jakub Rypina

Basic data  State Chart diagrams  Help the developer better understand functionalities or business flows.  Used to depict the behavior of a system

When to use  Use state diagrams to demonstrate the behavior of an object through many use cases of the system. Only use state diagrams for classes where it is necessary to understand the behavior of the object through the entire system. Not all classes will require a state diagram and state diagrams are not useful for describing the collaboration of all objects in a use case. State diagrams are other combined with other diagrams such as interaction diagrams and activity diagrams.

Symbols – part I State typeNotation simple sequential composite state initial state final state concurrent composite state

Symbols – part II State typeNotation junction state history state sub state submachine reference state H include S S

Basic symbol  State  Activity

External transition  Event  Guard  Action

Other transitions event [guard] /action state state 1state 2 [guard] /action internal transition self transition completion transition event [guard] /action

Login into online banking system

A seminar during registration

Seminar with a sub-state

Top-level state machine diagram

Concurrent processes in ATM ATM ready to operate Cash disposal do/issue money do/give card back division into concurent processes Synchronization of processes

Task I  A light switch have two states: on and off. A light switch only has one possible event: the switch gets flipped. We start from off position.

Task II  Your assistant only has two states of being: happy and sad. Further suppose that your assistant is basically cheerful and starts out happy. Also suppose that your assistant can only respond to two events: getting coffee (which makes her happy) and getting punched in the nose (which, needless to say, makes her sad).

Task III  This assistant also responds to the arrival of hot milk, as well as to the arrival of coffee and to being punched in the nose. This assistant starts out happy and sleepy, and only awakes up when coffee arrives, or by being punched in the nose but he is sad after being punched. She also gets sleepy and happy each time hot milk shows up.