Session 22 Modeling the Extended Features of the Statechart Written by Thomas A. Pender Published by Wiley Publishing, Inc. October 27, 2011 Presented.

Slides:



Advertisements
Similar presentations
© 2005 by Prentice Hall Appendix 3 Object-Oriented Analysis and Design Modern Systems Analysis and Design Fourth Edition Jeffrey A. Hoffer Joey F. George.
Advertisements

UML State Machine Diagrams and Modeling
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,
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.
ESE Einführung in Software Engineering 7. Modeling Behaviour Prof. O. Nierstrasz.
Introduction to Software Engineering 7. Modeling Behaviour.
© 2006 ITT Educational Services Inc. SE350 System Analysis for Software Engineers: Unit 9 Slide 1 Appendix 3 Object-Oriented Analysis and Design.
Session 18 Modeling the Dynamic View: The Collaboration Diagram Written by Thomas A. Pender Published by Wiley Publishing, Inc. October 20, 2011 Presented.
Ch5: Software Specification. 1 Dynamic modeling using UML  Static models:  Dynamic models:
Essentials of interaction diagrams Lecture 23 & 24.
Essentials of state and activity diagram Lecture 24.
© 2005 Prentice Hall4-1 Stumpf and Teague Object-Oriented Systems Analysis and Design with UML.
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.
State Change Modelling. Aim: To introduce the concept and techniques for describing the changes in state that may occur to an object in its lifetime.
SE-565 Software System Requirements More UML Diagrams.
University of Toronto Department of Computer Science © Steve Easterbrook. This presentation is available free for non-commercial use with attribution.
Unified Modeling Language
Lecture 4 Finite State Machine CS6133 Software Specification and Verification.
Session 24 Modeling the Development Environment Written by Thomas A. Pender Published by Wiley Publishing, Inc. October 27, 2011 Presented by Hyewon Lim.
Chapter 10 State Machine Diagrams
Chapter 7 Structuring System Process Requirements
Session 12 Applying the Class Diagram to the Case Study Written by Thomas A. Pender Published by Wiley Publishing, Inc. October 12, 2011 Presented by Hyewon.
1 Object-Oriented Modeling Using UML (2) CS 3331 Fall 2009.
UML / UML 2.0 Diagrams (Part III) 1. Sequence diagram is the most common kind of interaction diagram. It focuses on the message interchange between a.
Business Informatics Group Institute of Software Technology and Interactive Systems Vienna University of Technology Favoritenstraße 9-11/188-3, 1040 Vienna,
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.
Session 26 Modeling the Static View: The Deployment Diagram Written by Thomas A. Pender Published by Wiley Publishing, Inc. October 27, 2011 Presented.
Behavioral diagrams Lecture p4 T120B pavasario sem.
 2000 Deitel & Associates, Inc. All rights reserved. Optional Case Study - Chapter 3 Outline 3.1 Introduction 3.2 Class Attributes 3.3 Statechart Diagrams.
Slide 1 Systems Analysis and Design with UML Version 2.0, Second Edition Alan Dennis, Barbara Wixom, and David Tegarden Chapter 8: Behavioral Modeling.
Session 21 Applying the Basic Statechart to the Case Study Written by Thomas A. Pender Published by Wiley Publishing, Inc. October 27, 2011 Presented by.
CSIS3600 System Analysis and Design Statechart Diagrams.
Activity diagrams. Introduction ● Activity diagrams are a behavioural model that represent the dynamics of the system. ● An activity diagram is essentially.
Information System Design IT60105
CIS 112 Exam Review. Exam Content 100 questions valued at 1 point each 100 questions valued at 1 point each 100 points total 100 points total 10 each.
Object Oriented Analysis & Design & UML (Unified Modeling Language)1 Part VI: Design Continuous Activity Diagams State Diagrams.
States.
CS3773 Software Engineering Lecture 06 UML State Machines.
SOFTWARE DESIGN AND ARCHITECTURE LECTURE 26. Review UML behavioral Diagrams – Sequence diagram.
Session 3 How to Approach the UML Written by Thomas A. Pender Published by Wiley Publishing, Inc. October 5, 2011 Presented by Kang-Pyo Lee.
Modeling Object Lifecycles and State-Dependent Behavior ©SoftMoore ConsultingSlide 1.
Practical Object-Oriented Design with UML 2e Slide 1/1 ©The McGraw-Hill Companies, 2004 PRACTICAL OBJECT-ORIENTED DESIGN WITH UML 2e Chapter 6: Restaurant.
Session 29 Design of a Web Application Written by Thomas A. Pender Published by Wiley Publishing, Inc. November 2, 2011 Presented by Hyewon Kim.
York University Department of Computer Science © Castro, Mylopoulos and Easterbrook Lecture 11: Modelling “State”  What is State?  statespace.
® IBM Software Group © 2009 IBM Corporation Module 11: Creating State Machine Diagrams Essentials of Modeling with IBM Rational Software Architect V7.5.
UML Review: State Machines. Sept. 17, 2003Lecture 5: CS660 Fall Overview States Transitions Activities Modeling object lifeline Creating well-structured.
© 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1 Advanced UML State Diagrams.
Business Process and Functional Modeling
State Machine Diagram.
Dynamic Modeling of Banking System Case Study - I
Activity and State Transition Diagram
State Machine Diagrams
Business System Development
States.
CS/CPE 426 Senior Projects
Chapter 10 Object States and The Statechart Diagram
CS/CPE 426 Senior Projects
States.
CHAPTER 2 Object-Oriented Modeling Using UML (Continued)
CS 791Z State Machines & Advanced State Machines
Appendix A Object-Oriented Analysis and Design
UML State Diagrams.
Appendix 3 Object-Oriented Analysis and Design
Behavioral Diagrams P. P. Mahale
Product Training Program
UML State Diagrams (Ch. 29)
Presentation transcript:

Session 22 Modeling the Extended Features of the Statechart Written by Thomas A. Pender Published by Wiley Publishing, Inc. October 27, 2011 Presented by Kang-Pyo Lee

Contents  Modeling Transition Events –Call event –Time event –Change event –Making events conditional –Send event –Guard conditions as events  Modeling Superstates & Substates 2

Modeling Transition Events (1/6)  Five different event types –call events, time events, change events, send events, and guard conditions  The Statechart diagram for an Order object 3

Modeling Transition Events (2/6)  Call event –The most common event type –Basically the invocation of an operation on the receiving object –This type of event is the merge of an event and an event action 4

Modeling Transition Events (3/6)  Time event –Evaluates the passage of time as a trigger –Implies that the object supports some mechanism to monitor the passage of time  could be a batch program that runs at intervals to update a time attribute  could use a polling type of implementation where the object constantly checks to see what time it is –Use the keyword after to specify the time increment to be evaluated 5

Modeling Transition Events (4/6)  Change event –Tests for a change in the object or a point in time –Use the keyword when with the required test –Note that this event is only evaluated while the Order is either Cancelled or Shipped –Remember that what does not show on a Statechart tells you almost as much as what is shown on the diagram 6

Modeling Transition Events (5/6)  Making events conditional –A guard condition controls the response to an event –When an event occurs, the condition is tested –If the condition tests true, the corresponding transition takes place along with any and all associated actions; otherwise, the event is ignored –May actually be used by itself as a triggering event 7

Modeling Transition Events (6/6)  Send event –Models the fact that an object tells another object what to do –May be a response to a transition event or an internal event 8

Contents  Modeling Transition Events  Modeling Superstates & Substates –Split of control –Concurrency 9

Modeling Superstates & Substates (1/5)  Modeling often requires different views of a problem –High-level views simplify the model –Low-level views focus on details of a problem –The UML Statechart diagram supports the concept of nested states, allowing both high- and low-level views of object behavior and states  Superstate –Simply a state that is expanded to show more detail –The state rounded rectangle icon is expanded and the details are represented as one or more Statecharts within the superstate –The name of the state is placed at the top –Represents a high-level view of a complex situation –Allows you to focus on the bigger, more general problem without getting lost in the details –The substates are placed within the expanded superstate 10

Modeling Superstates & Substates (2/5)  Substate –A state within a state, a lower level of detail within a state –Provides a low-level view of a model element so that you can address specific issues individually and in terms of their interactions and interdependencies –Also allows you to highlight concurrent states and focus on how to control the splitting and merging of concurrent states 11

Modeling Superstates & Substates (3/5)  The diagram says that –When the Thermostat enters the Cooling state, it splits into two concurrent substates, that is, it is now doing two things at the same time –It is monitoring the progress of the cooling process, and it is monitoring the cooling device for any problems –The two substates start immediately upon entering the Cooling state 12

Modeling Superstates & Substates (4/5)  Split of control –Means that, based on a single transition, you want to proceed with multiple tasks –Shown by a single transition divided into multiple arrows pointing to multiple states or substates 13

Modeling Superstates & Substates (5/5)  Concurrency –The UML supports concurrency within a state by allowing multiple Statecharts within a state –Simply split the superstate internal transition compartment into as many separate compartments as needed, one for each sub-Statechart 14

The End