1 CS 691z/791z Topics in Software Engineering Chapter 13: Activity Diagrams & Chapter 19: Basic Statecharts [Arlow and Neustadt, 2002] March 8, 2007.

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

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”
Vered Gafni, The Design Language of Statecharts.
Activity Diagrams in UML. Definition Activity diagrams represent the dynamics of the system. They are flow charts that are used to show the workflow of.
© 2006 ITT Educational Services Inc. SE350 System Analysis for Software Engineers: Unit 9 Slide 1 Appendix 3 Object-Oriented Analysis and Design.
Activity Diagrams [Arlow and Neustadt, 2005] CS 425 / 625 Seminar on Software Engineering University of Nevada, Reno Department of Computer Science & Engineering.
SE 555 Software Requirements & Specification 1 Activity Diagrams.
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.
L06-2-S1 Activity Diagrams 2003 SJSU -- CmpE Software Engineering II Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
1 CS 426 Senior Projects Chapter 14: Activity Diagrams [Arlow and Neustadt, 2005] February 17, 2009.
1 CS 691z/791z Topics in Software Engineering Chapter 20: Advanced Statechart Modeling [Arlow and Neustadt, 2002] March 8, 2007.
1 © Wolfgang Pelz UML2 UML Part 3. 2 © Wolfgang Pelz UML2 Chapter Ten State Machine Diagrams.
1 CS/CPE 426 Senior Projects Chapter 21: State Machines Chapter 22:Advanced State Machines [Arlow and Neustadt 2005] March 24, 2009.
1/31 CS 426 Senior Projects Chapter 1: What is UML? Chapter 2: What is UP? [Arlow and Neustadt, 2005] January 22, 2009.
THE OBJECT-ORIENTED DESIGN WORKFLOW Statechart Diagrams.
1999 – 2006 M.E. Fayad SJSU -- CmpE Software Engineering Management Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
Requirements Analysis Activity Diagrams b511.ppt © Copyright De Montfort University 2000 All Rights Reserved INFO2005 Requirements Analysis.
1 CS 426 Senior Projects Chapter 1: What is UML? Chapter 2: What is UP? [Arlow and Neustadt, 2002] January 26, 2006.
COMP1007 Intro to Requirements Analysis © Copyright De Montfort University 2002 All Rights Reserved COMP1007 Introduction to Requirements Analysis Lecture.
Slide 1 Chapter 8 Behavioral Modeling. Slide 2 Key Ideas Behavioral models describe the internal dynamic aspects of an information system that supports.
SE-565 Software System Requirements More UML Diagrams.
Karolina Muszyńska Based on: S. Wrycza, B. Marcinkowski, K. Wyrzykowski „Język UML 2.0 w modelowaniu SI”
Software Engineering EKT 420. What is Activity Diagram Activity diagrams are graphical representations of workflows of stepwise activities and actions.
Lecture 4 Finite State Machine CS6133 Software Specification and Verification.
Chapter 10 State Machine Diagrams
Chapter 8: Modelling Interactions and Behaviour UML Activity Diagram
UML A CTIVITY D IAGRAMS 1 Dr. Hoang Huu Hanh, OST – Hue University hanh-at-hueuni.edu.vn.
Slide 16B.51 © The McGraw-Hill Companies, 2005 Object-Oriented and Classical Software Engineering.
Behavioral Modeling Chapter 8.
February 20, 2012  Present Fayad KSU – SWE Process and Modeling Software Process and Modeling Dr. M.E. Fayad, Professor Software Engineering Department,
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
© 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1 UML Activity Diagrams.
Unified Modelling Language (UML) Software Engineering Lab. Sharif University of Technology.
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.
PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 3rd Edition Copyright © 2009 John Wiley & Sons, Inc. All rights.
Scis.regis.edu ● CS-432: Modern Software Engineering Week 4 Dr. Jesús Borrego Lead Faculty, COS Regis University 1.
Chapter 14: Activity Diagrams November 2015 [Arlow and Neustadt, 2005] CS 425/625 Senior Projects University of Nevada, Reno Department of Computer Science.
UML Activity Diagrams.
State Machine Diagram Chapter 5 Introduction Pages
1 7 Systems Analysis and Design in a Changing World, 2 nd Edition, Satzinger, Jackson, & Burd Chapter 7 The Object-Oriented Approach to Requirements.
1 Systems Analysis and Design Behavioral Modeling Chapter 8 (Last one before the Midterm!)
© 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1 UML Activity Diagrams.
UML Chapter 17.
UML StateChart Diagrams
Activity Diagram.
Visit for more Learning Resources
UML State Diagrams.
Chapter 8: Modelling Interactions and Behaviour UML Activity Diagram
Business System Development
UML Activity Diagrams & State Charts
States.
CS/CPE 426 Senior Projects
Software System Engineering
Chapter 14: Activity Diagrams
State Machines Massimo Felici.
CS/CPE 426 Senior Projects
Chapter 14: Activity Diagrams
States.
Chapter 14: Activity Diagrams
CS 791Z State Machines & Advanced State Machines
Appendix 3 Object-Oriented Analysis and Design
UML State Diagrams (Ch. 29)
Presentation transcript:

1 CS 691z/791z Topics in Software Engineering Chapter 13: Activity Diagrams & Chapter 19: Basic Statecharts [Arlow and Neustadt, 2002] March 8, 2007

2 Outline Activity diagrams: Actions and subactivity states Transitions Decisions, forks, and joins Swimlanes and object flows Signals Basic statecharts: Syntax States Transitions Events

3 Activity Diagrams: Actions & Subactivities. Actitivity diagrams: Actitivity diagrams: A form of “OO flowcharts,” a particular case of statecharts A form of “OO flowcharts,” a particular case of statecharts Attached to modeling elements to describe behavior Attached to modeling elements to describe behavior Typically related to use cases, classes, components, collaborations, operations & methods Typically related to use cases, classes, components, collaborations, operations & methods Contain actions (atomic, uninterruptible, instantaneous) and sub-activities (non-atomic, interruptible, may take time) Contain actions (atomic, uninterruptible, instantaneous) and sub-activities (non-atomic, interruptible, may take time) Examples of actions, Fig [Arlow & Neustadt]: Examples of actions, Fig [Arlow & Neustadt]:

4 Activity Diagrams:.Actions & Subactivities Actions: Start and stop states, Fig [Arlow & Neustadt, 2002] Subactivities: Examples, Fig [Arlow & Neustadt, 2002]

5 Activity Diagrams: Transitions Transitions in activity diagrams, Fig [Arlow &Neustadt, 2002] Transitions in activity diagrams occur when the states finish their work

6 Activity Diagrams: Decisions Decisions in activity diagrams, Fig [Arlow & Neustadt, 2002]

7 Activity Diagrams: Forks and Joins Fig [Arlow & Neustadt, 2002] Activity diagrams allow modeling concurrent workflows

8 Activity Diagrams: Swimlanes Fig [Arlow & Neustadt, 2002] Swimlanes are typically used for use cases, business modeling, and workflow modeling

9 Activity Diagrams: Object Flows Fig [Arlow & Neustadt, 2002] Activities may input and output objects and may modify object states

10 Activity Diagrams: Signals Fig [Arlow & Neustadt, 2002] A signal is a package of information transferred asynchronously between objects

11 Statecharts There are two main modeling elements in statecharts: states and transitions. Example of a simple state machine, Fig [Arlow & Neustadt]

12 Statecharts: Syntax Summary of UML state syntax, Fig.19.3 [Arlow & Neustadt, 2002]

13 Statecharts: Transitions Summary of UML transition syntax, Fig.19.4 [Arlow & Neustadt, 2002] Where: Event = internal or external occurrence that triggers the transition Guard condition = boolean expression, when true transition allowed Action = some operation that takes place when the transition fires

14 Statecharts: Events…. Events can be of four types: Call event Signal event Change event Time event

15 Statecharts:.Events… Example of a call event, Fig.19.6 [Arlow & Neustadt, 2002]

16 Statecharts:..Events.. Example of signal event Fig.19.7 [Arlow & Neustadt, 2002] Modeling the receipt a signal Fig.19.8 [Arlow & Neustadt, 2002]

17 Statecharts: …Events. Example of a change event, Fig.19.9 [Arlow & Neustadt, 2002]

18 Statecharts: ….Events Example of a time event, Fig [Arlow & Neustadt, 2002]

19 Statecharts: What next? An advanced statechart [Ch. 20, Fig. 20.4, Arlow & Neustadt, 2002]

20 Extra: Analysis classes vs. Design classes Fig.15.2 [Arlow & Neustadt, 2002]