State Machines Massimo Felici.

Slides:



Advertisements
Similar presentations
UML State Machine Diagrams and Modeling
Advertisements

System Modelling System modelling helps the analyst to understand the functionality of the system and models are used to communicate with customers. Different.
Assess A Claim Object Interaction Diagrams. Object sequence Diagrams - Use case Sequence of events that occur during one particular execution of a system.
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 8 Slide 1 System models.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 8 Slide 1 System models.
Chapter 10 System Sequence Diagrams. What is a System Sequence Diagram? A way of modeling input and output events related to systems It is a picture that.
1 CS 691z/791z Topics in Software Engineering Chapter 13: Activity Diagrams & Chapter 19: Basic Statecharts [Arlow and Neustadt, 2002] March 8, 2007.
Essentials of state and activity diagram Lecture 24.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 8 Slide 1 System models September 29, 2008.
1 UML Component and Deployment Diagrams. Models, Views, and Diagrams Use Case Diagrams Use Case Diagrams Use Case Diagrams Scenario Diagrams Scenario.
1 © Wolfgang Pelz UML2 UML Part 3. 2 © Wolfgang Pelz UML2 Chapter Ten State Machine Diagrams.
Modeling State-Dependent Objects Using Colored Petri Nets
Modified from Sommerville’s originalsSoftware Engineering, 7th edition. Chapter 8 Slide 1 System models.
Lab 6 CPIT 250 System Analysis and Design.
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.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 8 Slide 1 System modeling 1.
©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 7 Slide 1 System models l Abstract descriptions of systems whose requirements are being.
CS451 Introduction to Software Engineering Behavioral Modeling.
Software Engineering 8. System Models.
Chapter 5 – System Modeling
Chapter 5 – System Modeling
©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 7 Slide 1 System models l Abstract descriptions of systems whose requirements are being.
Chapter 4 System Models A description of the various models that can be used to specify software systems.
System models. System modelling System modelling helps the analyst to understand the functionality of the system and models are used to communicate with.
System models Abstract descriptions of systems whose requirements are being analysed Abstract descriptions of systems whose requirements are being analysed.
NJIT Modeling Behavior in State Chart Diagrams Chapter 29 Rafael Mello.
©Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapter 7 Slide 1 System models l Abstract descriptions.
Dynamic Modeling Chapter 11 Part of Analysis Modeling Designing Concurrent, Distributed, and Real-Time Applications with UML Hassan Gomaa (2001)
Object Management Group (OMG) Specifies open standards for every aspect of distributed computing Multiplatform Model Driven Architecture (MDA)
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 8 Slide 1 Object-oriented and Structured System Models.
Chapter 7 System models.
Slide 1 System models. Slide 2 Objectives l To explain why the context of a system should be modelled as part of the RE process l To describe behavioural.
System models l Abstract descriptions of systems whose requirements are being analysed.
Modified by Juan M. Gomez Software Engineering, 6th edition. Chapter 7 Slide 1 Chapter 7 System Models.
Software Engineering, 8th edition Chapter 8 1 Courtesy: ©Ian Somerville 2006 April 06 th, 2009 Lecture # 13 System models.
Sommerville 2004,Mejia-Alvarez 2009Software Engineering, 7th edition. Chapter 8 Slide 1 System models.
©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 7 Slide 1 Chapter 7 System Models.
Information System Design IT60105
Chapter 7 The Object-Oriented Approach to Requirements.
1 Kyung Hee University Statecharts Spring Kyung Hee University Specifying Objects’ Behaviour  Interaction diagrams show message-passing behaviour.
Chapter 11 Activity Diagrams. 2 “Activity diagrams are a technique to describe procedural logic, business processes, and work flows” - M. Fowler An activity.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 8 Slide 1 System models.
CS212: Object Oriented Analysis and Design Lecture 34: UML Activity and Collaboration diagram.
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.
Dynamic Models Sequence Diagrams Collaboration Diagrams Activity Diagrams.
State Chart diagram Week objective Describe State chart Diagrams in Dynamic Modelling 2.
 To explain why the context of a system should be modelled as part of the RE process  To describe behavioural modelling, data modelling and object modelling.
1 7 Systems Analysis and Design in a Changing World, 2 nd Edition, Satzinger, Jackson, & Burd Chapter 7 The Object-Oriented Approach to Requirements.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 8 Slide 1 System models.
Engineering, 7th edition. Chapter 8 Slide 1 System models.
Chapter 2, Modeling with UML
Analysis Classes Unit 5.
Object-oriented and Structured System Models
Chapter 5 System modeling
Evolution of UML.
Dynamic Modeling of Banking System Case Study - II
Chapter 5 – System Modeling
Sequence Diagram.
Abstract descriptions of systems whose requirements are being analysed
IS301 – Software Engineering V:
Software Engineering Chapter 5 (Part 3) System Modeling Dr.Doaa Sami.
System models October 5, 2005.
CS/CPE 426 Senior Projects
Unified Modeling Language
CS310 Software Engineering Dr.Doaa Sami
CS/CPE 426 Senior Projects
Dynamic Modeling Lecture # 37.
CS 791Z State Machines & Advanced State Machines
UML State Diagrams (Ch. 29)
Presentation transcript:

State Machines Massimo Felici

Slide 1: State Machines Sequence and Communication Diagrams show how objects interact to meet some system requirements. They lack information on how the system decides what is the right thing to do. They correspond to scenarios and are decision free. There may bee many sequence or collaboration diagrams for one Use Case. The choice of how to react (that is, which scenario is appropriate) depends on a state. State Machines or Statechart Diagrams are based on the statechart notation called HiGraph. Statechart Diagrams are nite state machines with some extra mechanism to capture the meaning of transitions.

Activity vs. State Machines In UML semantics Activity Diagrams are reducible to State Machines with some additional notations In Activity Diagrams the vertices represent the carrying out of an activity and the edges represent the transition on the completion of one collection of activities to the commencement of a new collection of activities Activity Diagrams capture high level activities aspects In State Machines the vertices represent states of an object in a class and edges represent occurrences of events

Slide 2: Activity vs. State Machines The additional notations capture how activities are coordinated. In particular, it is possible to represent concurrency and coordination in Activity Diagrams. Objects have behaviours and states. The state of an object depends on its current activity or condition. A Statechart Diagrams shows the possible states of the object and the transitions that cause a change in state.

Example ( A Simple Microwave Oven) 1. Select the power level 2. Input the cooking time 3. Press start 4. Safety: the oven should never operate when the door is open