UML State machine diagram

Slides:



Advertisements
Similar presentations
State Diagram 1. State diagram: Shows the behavior of one object. They describe all of the possible states that a particular object can get into and how.
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.
Karolina Muszyńska Based on: S. Wrycza, B. Marcinkowski, K. Wyrzykowski „Język UML 2.0 w modelowaniu SI”
UML State chart/machine diagram State machine diagram is a behavior diagram which shows discrete behavior of a part of designed system through finite state.
Software Design Process A Process is a set of related and (sequenced) tasks that transforms a set of input to a set of output. Inputs Outputs Design Process.
Information System Design IT60105
1 Chapter 4 Dynamic Modeling and Analysis (Part I) Object-Oriented Technology From Diagram to Code with Visual Paradigm for UML Curtis H.K. Tsang, Clarence.
1 Chapter 4 Dynamic Modeling and Analysis (Part I) Object-Oriented Technology From Diagram to Code with Visual Paradigm for UML Curtis H.K. Tsang, Clarence.
Interaction Diagrams Activity Diagram State Machine Diagram
Ch5: Software Specification. 1 Dynamic modeling using UML  Static models:  Dynamic models:
THE OBJECT-ORIENTED DESIGN WORKFLOW Statechart Diagrams.
Advanced Behavioral Modeling
Chapter 10 State Machine Diagrams
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 8: Modelling Interactions and Behaviour.
CS 325: Software Engineering March 3, 2015 Activity Modeling for Transformational Systems Trtansformational Systems UML Activity Diagrams.
מידול התנהגותי 1. Today’s Session Sequence Diagrams State Machines 2.
1 Object-Oriented Modeling Using UML (2) CS 3331 Fall 2009.
The Object-Oriented Approach to Requirements
Systems Analysis and Design in a Changing World, Fifth Edition
Guide to State Transition Diagram. 2 Contents  What is state transition diagram?  When is state transition diagram used?  What are state transition.
 A software application is like a city  Modeling = Architecture  OOP = Civil Engineering  UML Classes = Blueprints of Buildings  UML is a common.
1 Modeling interactions and behavior Lecturer Dr. Mai Fadel.
Activity diagrams. Introduction ● Activity diagrams are a behavioural model that represent the dynamics of the system. ● An activity diagram is essentially.
7 Systems Analysis and Design in a Changing World, Fifth Edition.
Information System Design IT60105
Use Case Driven Analysis Requirements Use Case Use Case Description System Sequence Diagram Chapter 5.
Software Engineering Design & Modeling Statechart Diagram.
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.
CS212: Object Oriented Analysis and Design Lecture 34: UML Activity and Collaboration diagram.
Systems Analysis and Design in a Changing World, Fourth Edition
States.
CS3773 Software Engineering Lecture 06 UML State Machines.
Information Systems Engineering Activity Diagram 1.
SOFTWARE DESIGN AND ARCHITECTURE LECTURE 26. Review UML behavioral Diagrams – Sequence diagram.
1 IBM Software Group ® Essentials of Visual Modeling with UML 2.0 Module 7: Other UML Diagrams.
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.
Modeling Object Lifecycles and State-Dependent Behavior ©SoftMoore ConsultingSlide 1.
Cliquez pour modifier le style du titre Cliquez pour modifier les styles du texte du masque Deuxième niveau Troisième niveau Quatrième niveau Cinquième.
CompSci 280 S Introduction to Software Development
Systems Analysis and Design in a Changing World, Fourth Edition
State transition modeling
Welcome to M301 P2 Software Systems & their Development
Chapter 5 System modeling
State Machine Model.
State Machine Diagram.
State Machine Diagrams
Dynamic Modeling of Banking System Case Study - I
Activity and State Transition Diagram
Visit for more Learning Resources
Lab 6: Business Process Modeling Notation (BPMN) Additional Exercises
State Machine Diagrams
Object-Oriented Analysis
CSC 422 Kutztown University Dr. Spiegel
UML Activity Diagrams & State Charts
Seminar 3 UML Class Diagram.
States.
Object Oriented System Design
Advanced State Chart diagrams
Software Engineering System Modeling Chapter 5 (Part 1) Dr.Doaa Sami
Chapter 10 Object States and The Statechart Diagram
BPMN - Business Process Modeling Notations
Chapter 5 state Modeling
Using Use Case Diagrams
States.
Seminar 2 Design of Informatics Systems
Software Engineering System Modeling Chapter 5 (Part 1) Dr.Doaa Sami
Information Systems Engineering
UML State Diagrams.
Behavioral Diagrams P. P. Mahale
Presentation transcript:

UML State machine diagram Seminar 6 UML State machine diagram

State machine diagram It models the dynamic state of a particular object (instance). According to UML, a state is „a condition during an object’s life when it satisfies some criterion, performs some action, or waits for an event”. It identifies the events that determine the transition of an object from one state to another state. Not all events are applicable in the context of all states. There are conditions that may cause the occurrence of a particular event. http://www.uml-diagrams.org/state-machine-diagrams.html

State machine diagram State:  State invariant: Specifies conditions that are always true when this state is the current state. On entry action: An optional behavior that is executed whenever this state is entered Do activity: An optional behavior that is executed while being in the state On exit action: An optional behavior that is executed whenever this state is exited A deferred trigger is retained until the state machine reaches a state configuration where it is no longer deferred.

States State- represented by a rectangle with rounded corners. Initial and final state – they have same notations as in activity diagrams. They signify the beginning and then end of an object’s life. Sub-machine state – It is a state that contains sub-states (embedded states).

Transitions The object transits from one state to another when an event occurs and when certain conditions are met. Transition – represented by an arrow from an source state to a target state. It may contain: Trigger: it is the cause of transitions, and it may be an event, a condition change or the time passing. Condition: A condition that must be true for the trigger to determine the transition. Effect: Action that will be invoked by object as a result of transition.

Actions Except for the initial and the final state, every state has a name, state attributes, performed actions and activities. Special actions are: Entry – action taken when entering into a state. Exit – action taken when leaving a state. Do - action taken during a state; external events can interrupt Do action.

Decisions Decision (Choice) – it is a pseudo-state that make a conditional fork. It evaluates conditions for the triggers of output transitions in order to choose only one output transition.

Create the state diagram for the ROOM class. The project goal is to develope a software application for the management of a hotel business unit. In order to check in, a customer can request to reserve one or more rooms by e-mail or telephone. For this, he provides the receptionist with information on the period of accommodation and type of rooms required. Customers will get discounts if they reserve at least 3 rooms or if the period of accommodation exceeds 5 days. The receptionist checks availability and notifies the client of this and the estimated cost of accommodation. If there are no rooms available as requested, the receptionist can provide alternatives to the customer. The client may request a discount (additional or not) and the receptionist will decide the feasibility discount, assisted mandatory by the hotel manager. If the client agrees with the proposed price, they proceed to the reservation. For new customers, the receptionist asks identification data, which he introduces in the application. Once at the hotel and if it has made a prior booking, the customer will provide his identification and / or booking number and the check in is finalized. If there is no reservation, the availability for the required period will be checked. When there is such a room, accommodation is made. At the end of the stay, the receptionist prepares a list of all the services used by the customer and their price. The list must be validated by the customer, then the final invoice is drawn up. The invoice can be paid partially or fully by bank transfer, cash or using a credit card. Also, before leaving the hotel, the customer is asked to complete a form to evaluate the services provided by the hotel premises