State Diagrams.

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

State Charts Mehran Najafi. Reactive Systems A reactive, event-driven, object is one whose behavior is best characterized by its response to events dispatched.
FSM Revisit Synchronous sequential circuit can be drawn like below  These are called FSMs  Super-important in digital circuit design FSM is composed.
Introduction to UML Part 2 Behavioral Modeling. Sequence (event) diagram Describes object interaction Typically captures behavior of a single use case.
1 CS 691z/791z Topics in Software Engineering Chapter 13: Activity Diagrams & Chapter 19: Basic Statecharts [Arlow and Neustadt, 2002] March 8, 2007.
Sept Ron McFadyen Interaction Diagrams - Chapter 15 Describe/illustrate sequence of message exchanges among objects that are working together.
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.
1HW1 Explain the transition “interrupted” and “event wait.” Describe how they are different. NewReadyRunningTerminated Waiting (Blocked) admitted Dispatched.
1 © Wolfgang Pelz UML2 UML Part 3. 2 © Wolfgang Pelz UML2 Chapter Ten State Machine Diagrams.
SE-565 Software System Requirements More UML Diagrams.
Lecture 23 Design example: Traffic light controller.
The Traffic Light Social Studies 9 Ms. Rebecca 2009.
Lesson 2.2 Traffic Signals  Today’s Objectives: 1. Explain what to do at a green, yellow, and red light. 2. Describe the action to take when you approach.
Activity Diagram. C-S 5462 Activity diagram a diagram that represents a sequence of activities similar to flow chart, used in 1960’s and 1970’s an activity.
State Machines State diagrams SE-2030 Dr. Rob Hasker 1 Based on slides written by Dr. Mark L. Hornick Used with permission.
Lecture 4 Finite State Machine CS6133 Software Specification and Verification.
מידול התנהגותי 1. Today’s Session Sequence Diagrams State Machines 2.
EE434 ASIC & Digital Systems
NJIT Modeling Behavior in State Chart Diagrams Chapter 29 Rafael Mello.
Compound Probability Pre-AP Geometry. Compound Events are made up of two or more simple events. I. Compound Events may be: A) Independent events - when.
Fall 2010 CS4310 Requirements Engineering UML: Dynamic Modeling Dr. Guoqiang Hu Department of Computer Science UTEP 1.
1 Software Engineering Dr. K. T. Tsang Lecture 8 State modeling
Behavioral diagrams Lecture p4 T120B pavasario sem.
Object-Oriented Modeling Using UML CS 3331 Section 2.3 of Jia 2003.
What state are we in?. What are the two main parts of a computer program? – Data – Algorithms We have previously emphasized – how real-world information.
Session 22 Modeling the Extended Features of the Statechart Written by Thomas A. Pender Published by Wiley Publishing, Inc. October 27, 2011 Presented.
1 A Student Guide to Object- Oriented Development Chapter 7 State Diagrams.
Conditional Probability Objective: I can find the probability of a conditional event.
Finite State Machines. What is "abstraction"? Abstraction unifies multiple and different objects into one concept  describes the common properties of.
Information System Design IT60105
Software Engineering OO Analysis (Object-Behaviour Models)
Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Sequential machine implementation: –clocking. n Sequential machine design.
CSCI-383 Object-Oriented Programming & Design Lecture 12.
State Modeling. Introduction A state model describes the sequences of operations that occur in response to external stimuli. As opposed to what the operations.
CS3773 Software Engineering Lecture 06 UML State Machines.
State Chart diagram Week objective Describe State chart Diagrams in Dynamic Modelling 2.
SOFTWARE DESIGN AND ARCHITECTURE LECTURE 26. Review UML behavioral Diagrams – Sequence diagram.
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.
State Machines State diagrams SE-2030 Dr. Mark L. Hornick 1.
State Machine Diagram Chapter 5 Introduction Pages
Computer Organization CS345 David Monismith Based upon notes by Dr. Bill Siever and notes from the Patterson and Hennessy Text.
 Activity diagram is basically a flow chart to represent the flow from one activity to another activity.
State Modeling. Introduction A state model describes the sequences of operations that occur in response to external stimuli. As opposed to what the operations.
1 Object Oriented Analysis System modeling = Functional modeling + Object modeling + Dynamic modeling Functional modeling = Use cases Object modeling =class.
Signals, pavement markings, and proper turns QUIZ
UML StateChart Diagrams
State Diagrams What state are we in?.
State Machine Diagram.
Unified Modeling Language—UML A Very Brief Introduction
Standard UML: Communication and Dynamic Behavior
Interface, Subclass, and Abstract Class Review
Visit for more Learning Resources
UML State Diagrams.
CSE 403 Lecture 9 UML State Diagrams Reading:
Software models and the Unified Modeling Language (UML)
Probability.
States.
Object Oriented System Design
In the following slides, you will see
Chapter 5 state Modeling
Red lights, yellow lights, and green lights
States.
CHAPTER 2 Object-Oriented Modeling Using UML (Continued)
Which sets are equal? Which sets are equivalent?
UML State Diagrams.
Inequalities TRUE FALSE.
Digital System Design ASMD based Design
UML State Diagrams (Ch. 29)
Presentation transcript:

State Diagrams

What are State Diagrams? State Diagrams – describe all the possible states an object can assume and how the object’s state changes as a result of events that affect the object State Diagrams are drawn for a single class to show the lifetime behavior of a single object State Diagrams are good for describing the behavior of an object across several use cases In UML, State Diagrams Support superstates (states which contain other states) Support concurrency

State Diagrams - Notation Action – processes associated with transitions that occur quickly and are not interruptible Activity – processes associated with states that may take a while and my be interrupted by events Event – a stimulus that causes a transition or a self-transition to take place from one state to another Guard – a logical condition that returns “true” or “false” Superstate – a state that is itself a collection of states

Example: State Diagrams

State Diagrams – Example 2 Concurrent State Diagram

State Diagrams (Traffic light example) Start Traffic Light State Red Transition Yellow timer expires Yellow Car trips sensor Green timer expires Green Event

State Diagram for Printing Job