Chapter 29 State Machine Diagrams 1CS6359 Fall 2011 John Cole.

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

Chapter 29 State Machine Diagrams Sate Machine Diagrams Represent state of an object Behavior as reaction to events.
NCKU EE RTES LAB.1 Unified Modeling Language - Events and State Machines.
UML State Machine Diagrams and Modeling
Use Case Diagrams Damian Gordon.
Behavioral Modeling: State Diagrams CIS 4800 Kannan Mohan Department of CIS Zicklin School of Business, Baruch College Copyright © 2009 John Wiley & Sons,
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.
Embedded Systems Details. Object Model: Four main system objects or classes Controller object might be made up of several controllers is the brains of.
Introduction to UML Part 2 Behavioral Modeling. Sequence (event) diagram Describes object interaction Typically captures behavior of a single use case.
Slide 1 Systems Analysis & Design CS183 Spring Semester Dr. Jonathan Y. Clark Course Website:
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.
Advanced Behavioral Modeling
7M822 UML Interaction Diagrams 25 November 2010.
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.
Slide 1 Chapter 8 Behavioral Modeling. Slide 2 Key Ideas Behavioral models describe the internal dynamic aspects of an information system that supports.
CS451 Introduction to Software Engineering Behavioral Modeling.
State Machines State diagrams SE-2030 Dr. Rob Hasker 1 Based on slides written by Dr. Mark L. Hornick Used with permission.
Lecture 4 Finite State Machine CS6133 Software Specification and Verification.
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.
Software Engineering 1 Object-oriented Analysis and Design Chap 29 UML State Machine Diagrams and Modeling.
NJIT Modeling Behavior in State Chart Diagrams Chapter 29 Rafael Mello.
Fall 2010 CS4310 Requirements Engineering UML: Dynamic Modeling Dr. Guoqiang Hu Department of Computer Science UTEP 1.
Interaction Modeling. Introduction (1) Third leg of the modeling tripod. It describes interaction within a system. The class model describes the objects.
Behavioral diagrams Lecture p4 T120B pavasario sem.
Chapter 17 GRASP: Designing Objects with Responsibilities. 1CS6359 Fall 2011 John Cole.
Object-Oriented Modeling Using UML CS 3331 Section 2.3 of Jia 2003.
11 Software Engineering Dr. K. T. Tsang Lecture 9 Advance State Modeling
Chapter 13 Logical Architecture and UML Package Diagrams 1CS6359 Fall 2012 John Cole.
Group 2 work What is sequence diagram ? What is sequence diagram ? Why do we use it ? Why do we use it ? What is basic notation of SD? What is basic notation.
Behavioral Modeling Chapter 8.
Session 22 Modeling the Extended Features of the Statechart Written by Thomas A. Pender Published by Wiley Publishing, Inc. October 27, 2011 Presented.
ניתוח מערכות מידע 1 Unified Modeling Language (UML) § § The Unified Modeling Language (UML) is the industry-standard language for: Specifying, Visualizing,
What to remember from Chap 13 (Logical architecture)
OO Methodology Elaboration Iteration 3 – Part 2 Refining Models.
Behavioral Modeling Chapter 8
Software Engineering Design & Modeling Statechart Diagram.
1 Kyung Hee University Statecharts Spring Kyung Hee University Specifying Objects’ Behaviour  Interaction diagrams show message-passing behaviour.
Dynamic Models. Outline Dynamic Models Statecharts –States –Transitions –Composite states Interaction Diagrams –Sequence Diagrams The time order of interactions.
State Modeling. Events An event is an occurrence at a point in time, such as user depresses left button or.
Smith’s Aerospace © P. Bailey & K. Vander Linden, 2006 State Behavior Patrick Bailey Keith Vander Linden Calvin College.
States.
CS3773 Software Engineering Lecture 06 UML State Machines.
State Chart diagram Week objective Describe State chart Diagrams in Dynamic Modelling 2.
Interaction Diagram An interaction diagram is a graphical representation of interactions between objects. Sequence diagram: shows the sequence in which.
PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 3rd Edition Copyright © 2009 John Wiley & Sons, Inc. All rights.
INFO 620Lecture #71 Information Systems Analysis and Design Design Class Diagrams and others INFO 620 Glenn Booker.
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.
MVC COMP 401 Fall 2014 Lecture 19 10/30/2014. Classic MVC 2
State Machines State diagrams SE-2030 Dr. Mark L. Hornick 1.
Modeling Object Lifecycles and State-Dependent Behavior ©SoftMoore ConsultingSlide 1.
More on UML 1. 1.Use-case diagram 2.Class diagram [Object diagram] (static) 1.1 Domain/analysis model – of reality 1.2 Design model – of decisions 3.
Chapter 7 Behavioral Modeling Brandon A. Jones Stand and Deliver ITEC March 6, 2011.
1 Systems Analysis and Design Behavioral Modeling Chapter 8 (Last one before the Midterm!)
State Machine Model.
Chapter 8: Modelling Interactions and Behaviour UML Activity Diagram
CS251 – Software Engineering Lectures 11 State Diagrams
States.
States.
State Machine Diagrams
Sample Test Questions Please identify the use cases of the system that cover all the behaviors described in the system specification. Please identify.
CS 791Z State Machines & Advanced State Machines
UML State Diagrams.
Modeling Behavior in Statechart Diagrams
State-Transition Diagrams
UML State Diagrams (Ch. 29)
Presentation transcript:

Chapter 29 State Machine Diagrams 1CS6359 Fall 2011 John Cole

State Machine Diagrams They show a dynamic view, the interactions between states of an object and reaction to events. CS6359 Fall 2012 John Cole2

Event A significant or noteworthy occurrence – A telephone is taken off-hook – A key is pressed on a keyboard – A door is opened – A quarter is put into a vending machine CS6359 Fall 2011 John Cole3

Transition Relationship between two states that indicates that when an event occurs, the object moves from the prior state to the subsequent state. When off-hook occurs, transition from Idle to Active state CS6359 Fall 2011 John Cole4

Applying the Diagrams If an object always responds the same way to an event, it is state-independent or modeless. State-dependent objects react differently to messages depending upon their state. A telephone is very state-dependent. Its response to pushing buttons depends whether it is on-hook or off-hook and whether there is an ongoing call or not. CS6359 Fall 2011 John Cole5

When to Use Consider state machines and diagrams for complex, state-dependent objects, not for state-independent objects. Business information systems seldom have much state-dependent behavior (although the UI may have some) Process control, device control, and telecom have many state-dependent objects CS6359 Fall 2011 John Cole6

Modeling State-Dependent Objects State machines applied in 2 ways: – Model the behavior of a complex reactive object in response to events – Model legal sequences of operations such as protocol or language specifications. A formal grammar is a kind of state machine CS6359 Fall 2011 John Cole7

Complex Reactive Objects Physical devices Transactions between related business objects. How does sale, order or payment react to an event? Role mutators are objects that change roles based upon events. Person changes from civilian to veteran. City changes from destination to origin. CS6359 Fall 2011 John Cole8

Protocols TCP can be understood with a state machine diagram UI page/window flow or navigation UI flow controllers or sessions Use case system operations Individual UI event handling CS6359 Fall 2011 John Cole9

Transition Actions and Guards Transition can cause an action. This may be invocation of a method. Transition may also have a test and it occurs only if the test passes. CS6359 Fall 2011 John Cole10

Nested States States can have substates which inherit the transitions of the superstate. CS6359 Fall 2011 John Cole11