Advanced State Chart diagrams

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

Nested state diagrams:Problems with flat state diagram
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”
UML State chart/machine diagram State machine diagram is a behavior diagram which shows discrete behavior of a part of designed system through finite state.
CS 290C: Formal Models for Web Software Lecture 4: Implementing and Verifying Statecharts Specifications Using the Spin Model Checker Instructor: Tevfik.
© 2006 ITT Educational Services Inc. SE350 System Analysis for Software Engineers: Unit 9 Slide 1 Appendix 3 Object-Oriented Analysis and Design.
State Machines. What are they? Sometimes called a “Finite State Machine” Depicted as a “state diagram” It’s a tool for specifying a system’s behavior.
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.
5/24/2015CPSC , CPSC , Lecture 71 Software Engineering, CPSC , CPSC , Lecture 7.
CS 425/625 Software Engineering System Models
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.
THE OBJECT-ORIENTED DESIGN WORKFLOW Statechart Diagrams.
UML Notations Activity diagrams State diagrams Class diagrams Use-case diagrams.
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.
© Richard Welke 2002 CIS 4120 Fa13: Define/Innovate BP’s Richard Welke Director, CEPRIN Professor, CIS Robinson College of Business Georgia State University.
State Machines State diagrams SE-2030 Dr. Rob Hasker 1 Based on slides written by Dr. Mark L. Hornick Used with permission.
State Machine Diagram Chapter 10. State Machine Diagram Used to describe system behavior.
Lecture 4 Finite State Machine CS6133 Software Specification and Verification.
Chapter 10 State Machine Diagrams
Guide to State Transition Diagram. 2 Contents  What is state transition diagram?  When is state transition diagram used?  What are state transition.
UML Review – class diagrams SE 2030 Dr. Rob Hasker 1 Based on slides written by Dr. Mark L. Hornick Used with permission.
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 8 Slide 1 Object-oriented and Structured System Models.
Session 22 Modeling the Extended Features of the Statechart Written by Thomas A. Pender Published by Wiley Publishing, Inc. October 27, 2011 Presented.
CSIS3600 System Analysis and Design Statechart Diagrams.
Design Analysis builds a logical model that delivers the functionality. Design fully specifies how this functionality will be delivered. Design looks from.
Information System Design IT60105
Class and Sequence diagrams UML notation SE-2030 Dr. Mark L. Hornick 1.
States.
CS3773 Software Engineering Lecture 06 UML State Machines.
UML Class Diagram notation Indicating relationships between classes SE-2030 Dr. Mark L. Hornick 1.
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.
MCS 270 Spring 2014 Object-Oriented Software Development.
State Machines State diagrams SE-2030 Dr. Mark L. Hornick 1.
Smith’s Aerospace © P. Bailey & K. Vander Linden, 2005 Procedural Activity Patrick Bailey Keith Vander Linden Calvin College.
® IBM Software Group © 2009 IBM Corporation Module 11: Creating State Machine Diagrams Essentials of Modeling with IBM Rational Software Architect V7.5.
UML Review – class diagrams SE-2030 Dr. Mark L. Hornick 1.
© 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1 Advanced UML State Diagrams.
ACTIVITY DIAGRAMS 《UML面向对象建模基础》.
Object-oriented and Structured System Models
State Diagram – Advanced Concepts
State Machine Diagram.
Building System Models for RE
Activity Diagram.
Activity and State Transition Diagram
Visit for more Learning Resources
Advanced state modeling
State Machine Diagrams
Abstract descriptions of systems whose requirements are being analysed
UML State Diagrams.
Business System Development
Model-View-Controller
UML Activity Diagrams & State Charts
UML State machine diagram
System models October 5, 2005.
States.
Object Oriented System Design
CS/CPE 426 Senior Projects
CS/CPE 426 Senior Projects
States.
Advanced state modeling
CS 791Z State Machines & Advanced State Machines
Identifying & Creating Use Cases - Part 3
UML State Diagrams.
Appendix 3 Object-Oriented Analysis and Design
Behavioral Diagrams P. P. Mahale
Copyright © 2015, 2012, 2009 Elsevier Inc. All rights reserved.
State-Transition Diagrams
Presentation transcript:

Advanced State Chart diagrams State Machines Advanced State Chart diagrams SE-2030 Dr. Mark L. Hornick

State Diagrams can be used to help specify the dynamic logic implemented in Controller objects in response to events that the Controller receives SE-2030 Dr. Mark L. Hornick

Review: A simple state diagram illustrating a transition between two states. <event>: the trigger that causes the transition from State1 to State2 <guard>: a condition that must be satisfied for the transition to be permitted <effect>: the behavior or activity that takes place as part of the transition Q1: When does the effect take place? Q2: What state is the system in at the time of the effect? SE-2030 Dr. Mark L. Hornick

A state may specify actions that occur upon entry and exit entry/<action>: the operation to perform upon entering this state exit/<action>: the operation to perform upon exiting this state Entry/exit actions can be used to effectively “clean up” diagrams where multiple transitions into or out of a state have the same effect. SE-2030 Dr. Mark L. Hornick

A state may also specify an ongoing action that takes place while in the state do/<action>: the operation to perform while in this state SE-2030 Dr. Mark L. Hornick

A state may have attributes SE-2030 Dr. Mark L. Hornick

Sometimes a single state can be entered from multiple other states, leading to a proliferation of state transitions SE-2030 Dr. Mark L. Hornick

The “join” feature is one way to clean some of this up… SE-2030 Dr. Mark L. Hornick

Conversely, a state transition can be forked into several states Note that we lose the deterministic characteristics here since it is not clear which state is entered after existing the Paused state. SE-2030 Dr. Mark L. Hornick

Composite states are comprised of sub-states The semantics of a Composite state imply that the system must be in only one of the sub-states at any given time. SE-2030 Dr. Mark L. Hornick

This allows us to reduce the number of state transitions This notation indicates that the Paused state can be reached from any of the sub-states of the Running state. SE-2030 Dr. Mark L. Hornick

The History pseudo-state The History pseudo-state indicates that, upon re-entry into the Running state, the last-remembered sub-state will be restored.. SE-2030 Dr. Mark L. Hornick

Default re-entry If the history is lost, this notation indicates that the default state upon re-entry will be the Washing state. SE-2030 Dr. Mark L. Hornick

Direct entry/exit from sub-states This notation indicates that the Setup state transitions directly to the Washing sub-state, and the Spinning state transitions directly to the Clean final psuedo-state. SE-2030 Dr. Mark L. Hornick

Entry and exit points This notation indicates that the Setup state transitions to the Running state, and then to the Washing state via the RunningEntry pseudo-state. Similar for the exit to the Clean finish state. SE-2030 Dr. Mark L. Hornick

Concurrent independent states can also be accommodated CS-1020 11/24/2018 Concurrent independent states can also be accommodated SE-2030 Dr. Mark L. Hornick Dr. Mark L. Hornick