Zhang Shuang zhangs@swc.neu.edu.cn Software Engineering Zhang Shuang zhangs@swc.neu.edu.cn 1.

Slides:



Advertisements
Similar presentations
1 CIS224 Software Projects: Software Engineering and Research Methods Lecture 6 State Machine and Activity Diagrams (Based on Stevens and Pooley (2006,
Advertisements

UML. Interaction diagrams Collaboration diagrams –Depict behaviour of objects as they interact Sequence diagrams –depict the dynamic behaviour of elements.
Sequence Diagrams Dan Fleck.
Deployment Diagrams Depicts a static view of the run-time configuration of Nodes.
Modeling Main issues: What do we want to build How do we write this down ©2008 John Wiley & Sons Ltd. vliet.
Chapter 6: Behavioral Modeling
Use Case - Example University library system requirements
Introduction to UML Part 2 Behavioral Modeling. Sequence (event) diagram Describes object interaction Typically captures behavior of a single use case.
March R. McFadyen1 Statechart Diagram A Statechart Diagram describes states for an object how/why an objects’ state changes A Statechart Diagram.
Essentials of state and activity diagram Lecture 24.
2007ACS-3913 R. McFadyen1 UML Statechart Diagram A UML Statechart Diagram describes states for an object how/why an objects’ state changes A Statechart.
Slide 7C.1 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. An Introduction to Object-Oriented Systems Analysis and Design with.
UML Sequence Diagrams Eileen Kraemer CSE 335 Michigan State University.
Nov 2002 R. McFadyen1 Statechart Diagrams - Ch 29 Example: Suppose we have a class Copy, representing copies of books. We can consider two states:
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.
Oct R. McFadyen1 Statechart Diagrams Example: Suppose we have a class Copy, representing copies of books. We can consider two states: available,
Chapter 3 : Software Process and Other Models Juthawut Chantharamalee Curriculum of Computer Science Faculty of Science and Technology, Suan Dusit University.
Software Engineering Case Study Slide 1 Introductory case study.
VCE IT Theory Slideshows
Unified Modeling Language
UML Diagrams: Sequence Diagrams The Requirements Model, and The Dynamic Analysis Model Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical.
Coming up: Interaction Diagrams
State and Sequence Diagrams Modelling dynamic information So far we have seen: Use Case Diagrams – requirements capture, interface.
System Sequence Diagrams
UML Collaboration Diagram. Recap System Sequence Diagrams (SSD) UML for SSD Examples.
Class, Sequence and UML Model.  Has actors and use cases.
程建群 博士(Dr. Jason Cheng) 年03月
1 Object-Oriented Modeling Using UML (2) CS 3331 Fall 2009.
Lecture 7 Object Oriented Design. Outline  What is UML and why we use UML?  How to use UML diagrams to design software system?  What UML Modeling tools.
Other UML Diagramming Techniques CS 124. UML Diagramming Techniques Class Diagrams Use Case Diagrams Interaction Diagrams Sequence diagrams Collaboration.
UML Diagrams: Sequence Diagrams The Requirements Model, and The Dynamic Analysis Model Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical.
1 Analysis Extracting from Use Cases to Create Diagrams.
Lecture 14 & 15: Object- Oriented Analysis Anita S. Malik Adapted from Schach (2004) Chapter 12.
Object-Oriented Modeling Using UML CS 3331 Section 2.3 of Jia 2003.
Modeling Shari L. Pfleeger and Joanne M. Atlee, Software Engineering: Theory and Practice, 4 th edition, Prentice Hall, Hans Van Vliet, Software.
UML -Part 3. Dynamic Diagram Types Interaction Diagrams - Set of objects or roles and the messages that can be passed among them. – Sequence Diagrams.
ניתוח מערכות מידע 1 Unified Modeling Language (UML) § § The Unified Modeling Language (UML) is the industry-standard language for: Specifying, Visualizing,
Sequence diagram in UML Martin Palkovik. Sequence diagram  It is a graphic representation of system operations based on chronology - a time sequence.
Slide 12A.1 © The McGraw-Hill Companies, 2005 Object-Oriented and Classical Software Engineering Sixth Edition, WCB/McGraw-Hill, 2005 Stephen R. Schach.
The Unified Modeling Language Part II Omar Meqdadi SE 2730 Lecture 9 Department of Computer Science and Software Engineering University of Wisconsin-Platteville.
1 Kyung Hee University Statecharts Spring Kyung Hee University Specifying Objects’ Behaviour  Interaction diagrams show message-passing behaviour.
CSCI-383 Object-Oriented Programming & Design Lecture 12.
System Sequence Diagram Chandan Rupakheti & Steve Chenoweth Week 5-3a.
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.
Software Engineering 2003 Jyrki Nummenmaa 1 MORE UML DIAGRAM TYPES We have seen a number of UML diagram types while studying our example. These.
State Chart diagram Week objective Describe State chart Diagrams in Dynamic Modelling 2.
OOP Review CS 124.
TK2023 Object-Oriented Software Engineering CHAPTER 9 INTRODUCTION TO OBJECT DESIGN.
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.
PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 5th Edition Copyright © 2015 John Wiley & Sons, Inc. All rights.
1 Specification A broad term that means definition Used at different stages of software development for different purposes Generally, a statement of agreement.
Software Engineering: Models David Millard
March 2007ACS-3913 R. McFadyen1 UML Statechart Diagram A UML Statechart Diagram describes states for an object how/why an objects’ state changes A Statechart.
Chapter 5 – System Modeling 1. Systems and the Real World A real-world situation or problem Thinks about Makes comparisons A system that helps to understand.
UML Activity and Sequence Diagrams David Millard
Chapter 1 Overview of UML for Java Programmers. 2 Outline Diagram Types Diagram Types Class Diagrams Class Diagrams Object Diagrams Object Diagrams Sequence.
State Diagram – Advanced Concepts
Main issues: • What do we want to build • How do we write this down
State Diagrams Pepper.
Review for Midterm, Fall 2009
BTS430 Systems Analysis and Design using UML
Unified Modeling Language
Start at 17th March 2012 end at 31th March 2012
Chapter 8: Modelling Interactions and Behaviour UML Activity Diagram
SNSCT_CSE_PROGRAMMING PARADIGM_CS206
Brackets, Factors and Equations
UML Diagrams: Sequence Diagrams Dynamic Analysis Model
Chapter 9: Sequence Diagrams Chapter 5 in Software Engineering Book
Other UML Diagramming Techniques
Ch. 28 Larman UML & Patterns
Presentation transcript:

Zhang Shuang zhangs@swc.neu.edu.cn Software Engineering Zhang Shuang zhangs@swc.neu.edu.cn 1

Zhang Shuang, zhangs@swc.neu.edu.cn 3. Dynamic Modeling Produce UML state diagram State, event, predicate distributed over state diagram UML “guards” are in brackets [ ] Initial state End state Zhang Shuang, zhangs@swc.neu.edu.cn

3. Dynamic Modeling State diagram is replenishment of class description. It depicts all the states that a class' instance may experience and the causing events. An event may be a message from another object, or meeting some conditions. An event may be an action which causing state change. The state's change is called transition.

Zhang Shuang, zhangs@swc.neu.edu.cn 3. Dynamic Modeling Not all classes need state diagram. Some classes have clear states changing according to conditions and events. Zhang Shuang, zhangs@swc.neu.edu.cn

Zhang Shuang, zhangs@swc.neu.edu.cn 3. Dynamic Modeling Exercise 1 Draw a UML state diagram to model the control program for a portable CD player. Include three states: stopped, playing, and paused. Also, include three events possible in any state: pause_is_pressed, stop_is_pressed, and play_is_pressed. Zhang Shuang, zhangs@swc.neu.edu.cn

Zhang Shuang, zhangs@swc.neu.edu.cn 3. Dynamic Modeling State Diagram for CD player paused Zhang Shuang, zhangs@swc.neu.edu.cn

Zhang Shuang, zhangs@swc.neu.edu.cn 3. Dynamic Modeling Exercise 2 Draw a UML state diagram to model the Library Mgmt. System for a book. Include three states: available, borrowed, and reserved. Also, include events possible in any state: borrow, return, reserve, cancel reservation, reservation times out and renew. Zhang Shuang, zhangs@swc.neu.edu.cn

3. Dynamic Modeling State Diagram for Book in Library Mgmt. Sys.

Zhang Shuang, zhangs@swc.neu.edu.cn 3. Dynamic Modeling Exercise 3 ---- Order in an eCommerce system An order goes through the states of placed, paid, shipped, arrived, closed. Zhang Shuang, zhangs@swc.neu.edu.cn

3. Dynamic Modeling

Zhang Shuang, zhangs@swc.neu.edu.cn 3. Dynamic Modeling Practice: get state diagram for class Order in eCommerce System. Zhang Shuang, zhangs@swc.neu.edu.cn

Thank You ! 12