11 Software Engineering Dr. K. T. Tsang Lecture 9 Advance State Modeling

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
Nested state diagrams:Problems with flat state diagram
Modeling Main issues: What do we want to build How do we write this down.
©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 12Slide 1 Software Design l Objectives To explain how a software design may be represented.
UML (Sequence Diagrams, Collaboration and State Chart Diagrams) Presentation By - SANDEEP REDDY CHEEDEPUDI (Student No: ) - VISHNU CHANDRADAS (Student.
Modeling Main issues: What do we want to build How do we write this down ©2008 John Wiley & Sons Ltd. vliet.
© 2006 ITT Educational Services Inc. SE350 System Analysis for Software Engineers: Unit 9 Slide 1 Appendix 3 Object-Oriented Analysis and Design.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall A.1.
Chapter 22 Object-Oriented Systems Analysis and Design and UML Systems Analysis and Design Kendall and Kendall Fifth Edition.
Lecture 12: Chapter 22 Topics: UML (Contd.) –Relationship Structural Behavioral –Diagram Structural Behavioral.
CS 425/625 Software Engineering System Models
Software modeling for embedded systems: static and dynamic behavior.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 8 Slide 1 System models September 29, 2008.
Unified Modeling (Part I) Overview of UML & Modeling
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 1 Object-oriented design 2.
© Copyright Eliyahu Brutman Programming Techniques Course.
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Appendix.
1 CS 426 Senior Projects Chapter 1: What is UML? Chapter 2: What is UP? [Arlow and Neustadt, 2002] January 26, 2006.
Unified Modeling Language(UML) BY
UML Sequence Diagrams Michael L. Collard, Ph.D. Department of Computer Science Kent State University.
CIT UPES | Sept 2013 | Unified Modeling Language - UML.
1 Software Engineering Dr. K. T. Tsang Lecture 8 State modeling
Copyright 2001 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Appendix A Object-Oriented.
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 20 Object-Oriented.
Unified Modeling Language, Version 2.0
Lecture 3: Visual Modeling & UML 1. 2 Copyright © 1997 by Rational Software Corporation Computer System Business Process Order Item Ship via “ Modeling.
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 8 Slide 1 Object-oriented and Structured System Models.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 1 Object-oriented Design.
11 Software Engineering Dr. K. T. Tsang Lecture 6 Interaction Diagrams
UML Diagrams A tool for presentation of Architecture.
Fall 2010 CS4310 Requirements Engineering A Brief Review of UML & OO Dr. Guoqiang Hu Department of Computer Science UTEP 1.
The Unified Modeling Language Part II Omar Meqdadi SE 2730 Lecture 9 Department of Computer Science and Software Engineering University of Wisconsin-Platteville.
Course Instructor: Kashif Ihsan 1. Chapter # 3 2.
1/26 On-demand Learning Series Software Engineering of Web Application - Object-Oriented Development & UML Hunan University, Software School.
Introduction to UML CS A470. What is UML? Unified Modeling Language –OMG Standard, Object Management Group –Based on work from Booch, Rumbaugh, Jacobson.
12 Chapter 12: Advanced Topics in Object-Oriented Design Systems Analysis and Design in a Changing World, 3 rd Edition.
©2007 · Georges Merx and Ronald J. NormanSlide 1 Chapter 15 The Unified Modeling Language: a Primer.
University of Toronto at Scarborough © Kersti Wain-Bantin CSCC40 UML 1 UML unified modeling language 1994 first attempts - largely theoretical 1997 UML.
CS3773 Software Engineering Lecture 06 UML State Machines.
Slide 1 Systems Analysis and Design With UML 2.0 An Object-Oriented Approach, Second Edition Chapter 2: Introduction to Object-Oriented Systems Analysis.
1 Unified Modeling Language, Version 2.0 Chapter 2.
OOP Review CS 124.
Chapter 5 System Modeling. What is System modeling? System modeling is the process of developing abstract models of a system, with each model presenting.
Fall 2007 Week 9: UML Overview MSIS 670: Object-Oriented Software Engineering.
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall Appendix A Object-Oriented Analysis and Design A.1.
1 SYS366 Week 2 - Lecture 2 Visual Modeling & UML.
Basic Characteristics of Object-Oriented Systems
Chapter - 6 Advanced State Modeling
UML. Model An abstract representation of a system. Types of model 1.Use case model 2.Domain model 3.Analysis object model 4.Implementation model 5.Test.
Modified from Sommerville’s originalsSoftware Engineering, 7th edition. Chapter 14 Slide 1 Object-Oriented Design.
UML (Unified Modeling Language)
Chapter 5 – System Modeling Lecture 1 1Chapter 5 System modeling.
Slide 1 Unified Modeling Language, Version 2.0 Object-Oriented SAD.
CS 350 – Software Design UML – The Unified Modeling Language – Chapter 2 The Unified Modeling Language is a visual language used to create models of programs.
Object-oriented and Structured System Models
Main issues: • What do we want to build • How do we write this down
Course Outcomes of Object Oriented Modeling Design (17630,C604)
Systems Analysis and Design With UML 2
Subject Name: Object oriented Modeling and Design
SNSCT_CSE_PROGRAMMING PARADIGM_CS206
Business System Development
Chapter 20 Object-Oriented Analysis and Design
Appendix A Object-Oriented Analysis and Design
Software Analysis.
Appendix A Object-Oriented Analysis and Design
Chapter 4 System Modeling.
Appendix A Object-Oriented Analysis and Design
Appendix 3 Object-Oriented Analysis and Design
UML State Diagrams (Ch. 29)
Presentation transcript:

11 Software Engineering Dr. K. T. Tsang Lecture 9 Advance State Modeling

2 Sub-state diagram & submachine Complex state diagram can be simplified by using a high-level diagram with sub- diagrams expanding certain states. A submachine is a state diagram that may be invoked as part of another state diagram. The UML notation for a submachine is a state name followed by a colon and the submachine name.

3 Example: submachine Fig.6.2 p.111 B&R

4 Example: submachine -2 Fig.6.3 p.112 B&R

5 Nested states States with common features and shared behaviors can be grouped together to form a macro-state. This will help to simplify the original complex state diagram. The constituent states of the macro-state is called nested states.

6 State diagrams for a phone line Fig.5.8 p.97 (no nested states)

7 Fig.6.4 p.113 State diagrams for a phone line (with nested states)

8 Signal (class) generalization Signals can be organized into a hierarchy in inheritance relationship. Hierarchy for keyboard signals -- Fig. 6.6 p.115

9

10 Concurrency In general, objects are autonomous entities that can act & change state independently. Sometimes, they need not be completely independent and may subject to shared constraints that cause some correspondence among their state changes.

11 Aggregation concurrency Example: Car – fig.6.7 p.116 State diagram for aggregate object is a collection for its parts. The aggregate state comprises of (“and” related) one state from each part. Transition in one part may depend on the states in other parts. In the car example, the transition of ignition from “off” to “starting” depends on the transmission in “neutral” state.

12 Example: Car – fig.6.7 p.116

13 Concurrent activities within an object Some object may have to perform 2 or more activities concurrently. These activities may not be synchronized but they must be completed before the object can progress to its next state. Fig. 6.9 p.117 CashDispenser example

14 Fig. 6.9 p.117 CashDispenser example

15 Summary – OO modeling methodologies Class model (static view of classes) –Classes & Associations –Class diagram, Object diagram State model (dynamic view of a class, life of objects) –States, events, signals, activities, & transitions –State diagram Interaction model (dynamic view across classes) –Sequence diagram (time) –Collaboration diagram (players) –Activity diagram (processes)

16 Development stages Requirement Analysis Design –System (architecture) –Class Implementation Testing Deployment, maintenance OO Methodologies

17 Reading for this lecture Chapter 6 Blaha & Rumbaugh