® IBM Software Group © 2009 IBM Corporation Module 11: Creating State Machine Diagrams Essentials of Modeling with IBM Rational Software Architect V7.5.

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

State Charts Mehran Najafi. Reactive Systems A reactive, event-driven, object is one whose behavior is best characterized by its response to events dispatched.
Nested state diagrams:Problems with flat state diagram
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.
Statecharts Semantics
A Brief Introduction. Acknowledgements  The material in this tutorial is based in part on: Concurrency: State Models & Java Programming, by Jeff Magee.
® IBM Software Group © 2006 IBM Corporation Rational Software France Object-Oriented Analysis and Design with UML2 and Rational Software Modeler 04. Other.
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.
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.
1 CS 691z/791z Topics in Software Engineering Chapter 20: Advanced Statechart Modeling [Arlow and Neustadt, 2002] March 8, 2007.
1 CS/CPE 426 Senior Projects Chapter 21: State Machines Chapter 22:Advanced State Machines [Arlow and Neustadt 2005] March 24, 2009.
THE OBJECT-ORIENTED DESIGN WORKFLOW Statechart Diagrams.
UML Notations Activity diagrams State diagrams Class diagrams Use-case diagrams.
Advanced Behavioral Modeling
SE-565 Software System Requirements More UML Diagrams.
© 2008 IBM Corporation Behavioral Models for Software Development Andrei Kirshin, Dolev Dotan, Alan Hartman January 2008.
Lecture 4 Finite State Machine CS6133 Software Specification and Verification.
Chapter 10 State Machine Diagrams
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 8: Modelling Interactions and Behaviour.
מידול התנהגותי 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,
Systems Analysis and Design in a Changing World, 6th Edition
Guide to State Transition Diagram. 2 Contents  What is state transition diagram?  When is state transition diagram used?  What are state transition.
Behavioral diagrams Lecture p4 T120B pavasario sem.
Object-Oriented Modeling Using UML CS 3331 Section 2.3 of Jia 2003.
1 Interaction diagrams and activity diagrams Speaker: 陳 奕 全 Real-time and Embedded System Lab 15 August 2002.
1 Modeling interactions and behavior Lecturer Dr. Mai Fadel.
Session 22 Modeling the Extended Features of the Statechart Written by Thomas A. Pender Published by Wiley Publishing, Inc. October 27, 2011 Presented.
Design Analysis builds a logical model that delivers the functionality. Design fully specifies how this functionality will be delivered. Design looks from.
7 Systems Analysis and Design in a Changing World, Fifth Edition.
Information System Design IT60105
Systems Analysis and Design in a Changing World, 6th Edition 1 Chapter 5 INTRODUCTION TO SYSTEMS ANALYSIS AND DESIGN: AN AGILE, ITERATIVE APPROACH CHAPTER.
Unified Modeling Language User Guide Section 4 - Basic Behavioral Modeling Chapter 19 – Activity Diagrams.
Chapter 11 Activity Diagrams. 2 “Activity diagrams are a technique to describe procedural logic, business processes, and work flows” - M. Fowler An activity.
Object Oriented Analysis & Design & UML (Unified Modeling Language)1 Part VI: Design Continuous Activity Diagams State Diagrams.
OMT Modeling 1. Object Model : presented by the object model and the data dictionary. 2. Dynamic Model: presented by the state diagrams and event flow.
States.
CS3773 Software Engineering Lecture 06 UML State Machines.
Using VisSim State Charts Visual Solutions, Inc. 487 Groton Road, Westford MA USA (800) VISSIM-1
® IBM Software Group © 2009 IBM Corporation Essentials of Modeling with IBM Rational Software Architect V7.5 Module 17: Team Modeling.
® IBM Software Group © 2009 IBM Corporation Essentials of Modeling with the IBM Rational Software Architect, V7.5 Module 15: Traceability and Static Analysis.
Essentials of Modeling with IBM Rational Software Architect V7.5
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.
UML Activity Diagrams.
® IBM Software Group © 2007 IBM Corporation Module 3: Creating UML Diagrams Essentials of Modeling with IBM Rational Software Architect, V7.5.
© 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1 Advanced UML State Diagrams.
State transition modeling
UML Chapter 17.
State Diagram – Advanced Concepts
State Machine Diagram.
Unified Modeling Language
Activity and State Transition Diagram
Static and Dynamic Modeling Using UML
State Machine Diagrams
UML Activity Diagrams & State Charts
States.
CS/CPE 426 Senior Projects
SS 2018 Software Verification ML, state machines
Advanced State Chart diagrams
CS/CPE 426 Senior Projects
Dynamic Modeling Lecture # 37.
States.
CS 791Z State Machines & Advanced State Machines
Behavioral Diagrams P. P. Mahale
Copyright © 2015, 2012, 2009 Elsevier Inc. All rights reserved.
Presentation transcript:

® IBM Software Group © 2009 IBM Corporation Module 11: Creating State Machine Diagrams Essentials of Modeling with IBM Rational Software Architect V7.5

2 Module overview After completing this module, you will be able to:  Describe the elements in a state machine diagram  Describe the relationships in a state machine diagram  Create a state machine diagram in Rational Software Architect

3  State machines are used to describe dynamic (state-driven) behavior  Operation- to system-level abstraction  Use state machines:  To model use-case scenarios in business modeling  To model event-driven objects  To show different aspects of the same state machine and its behavior State machines

4 A state machine diagram  State transitions: Possible paths the system may take from one state to another  Triggering events: Instantaneous events that stimulate state transitions  Actions: Work the system does in response to events

5 States  State: “A recognizable situation that exists over an interval of time” – Hassan Gomaa  Actions: Work the system does in response to events  States can have entry, exit, and do activities performed while in the state Entry activity Execute when entering the state Entry activity Execute when entering the state Do activity Executed after entry, before exit Do activity Executed after entry, before exit Exit activity Executed when the state is exited Exit activity Executed when the state is exited

6 Transitions  A transition is the path taken during a change of state from one state to the next in response to a triggering event  Guard condition: Optional condition to be evaluated; if false, the transition is not taken

7 Regions  Regions model concurrent orthogonal states  Like separate state machines that operate in parallel

8 Composite States  Composite states are states that contain other states and regions

9 Orthogonal States  Orthogonal states  Are composite states with two or more regions within the state.

10 Submachine State  A submachine state is a decomposition mechanism that allows factoring of common behaviors and their reuse  Similar in concept to the call behavior action in activity diagrams  Semantically equivalent to a composite state

11 Special states: pseudostates and final state  Initial State: Marks the start of the machine  Choice Point: Supports dynamic branches  Junction Point: Supports static branches  Deep History: Return to the most recent substate  Shallow History: Return to the most recent state  Join, Fork: Similar to activity diagram  Entry, Exit Point: Used to designate a default entry or exit into a composite state or state machine  Terminate: Marks the end of the state machine’s execution  Final State: Marks the completion of the region or machine Pseudostates Combine and direct transitions Pseudostates Combine and direct transitions Final State Marks execution of region complete Final State Marks execution of region complete

12 Choice points  Choice points realize a dynamic conditional branch  Outputs transitions, each with a guard condition, one of which must be true.

13 Junctions  Junctions realize a static conditional branch  Can be used to split or join multiple transitions  Guard conditions are evaluated before transitions are fired  If all guard conditions return false, then remain in the source state

14  History pseudo-states are used with composite states  Deep History  Represents the most recent active configuration of the composite state that directly contains this pseudostate  A composite state can have, at most, one Deep History vertex  Shallow History  Represents the most recent active substate of its containing state (but not the substates of that substate).  A composite state can have, at most, one Shallow History vertex. History

15 Example state machine diagram

16 Lab 11: Create State Machine Diagrams To begin the lab:  In the workbench, click Help > Cheat Sheets to open the Cheat Sheet Selection dialog.  Expand Essentials of Modeling Labs.  Double-click 11 Create State Machine Diagrams.  Follow the directions indicated on the Cheat Sheet.  In this lab, you will complete the following tasks:  Review state machine diagram basics  Create a new state machine diagram

17 Review  Which model elements can have associated state machine diagrams?  In what cases would you use state machine diagrams?  What is a choice point? What is a junction?

18