Information System Design IT60105

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.
Behavioral Modeling: State Diagrams CIS 4800 Kannan Mohan Department of CIS Zicklin School of Business, Baruch College Copyright © 2009 John Wiley & Sons,
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.
© 2006 ITT Educational Services Inc. SE350 System Analysis for Software Engineers: Unit 9 Slide 1 Appendix 3 Object-Oriented Analysis and Design.
Information System Design IT60105
SE 555 Software Requirements & Specification 1 Activity Diagrams.
Mastering the Unified Modeling Language -- State Transition Diagrams -- © Josef Schiefer, IBM Watson.
Ch5: Software Specification. 1 Dynamic modeling using UML  Static models:  Dynamic models:
Chapter 8: Modelling Interactions and Behaviour
Essentials of state and activity diagram Lecture 24.
1 CS/CPE 426 Senior Projects Chapter 21: State Machines Chapter 22:Advanced State Machines [Arlow and Neustadt 2005] March 24, 2009.
State Change Modelling. Aim: To introduce the concept and techniques for describing the changes in state that may occur to an object in its lifetime.
SE-565 Software System Requirements More UML Diagrams.
Software Design Processes and Management
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
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 8: Modelling Interactions and Behaviour.
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 8: Modelling Interactions and Behaviour.
Modelling Interactions and Behaviour. © Lethbridge/Laganière 2005 Chapter 8: Modelling Interactions and Behaviour2 Interaction Diagrams Interaction diagrams.
Business Informatics Group Institute of Software Technology and Interactive Systems Vienna University of Technology Favoritenstraße 9-11/188-3, 1040 Vienna,
NJIT Modeling Behavior in State Chart Diagrams Chapter 29 Rafael Mello.
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 8: Modelling Interactions and Behaviour.
Interaction Models (2): Sequence Diagrams Extracted from textbook: Object Oriented Modeling and Design with UML M. Blaha, J. Rumbaugh 1.
1 Modeling interactions and behavior Lecturer Dr. Mai Fadel.
1 Devon M. Simmonds University of North Carolina, Wilmington CSC450 Software Engineering WorkFlow Modeling with Activity Diagrams.
Activity diagrams. Introduction ● Activity diagrams are a behavioural model that represent the dynamics of the system. ● An activity diagram is essentially.
University of Toronto at Scarborough © Kersti Wain-Bantin CSCC40 state charts 1 object states an object state is a condition or situation during the life.
Course Instructor: Kashif Ihsan 1. Chapter # 3 2.
1 Kyung Hee University Diagram Editor : Design View Spring 2001.
1 Kyung Hee University Statecharts Spring Kyung Hee University Specifying Objects’ Behaviour  Interaction diagrams show message-passing behaviour.
Introduction to UML CS A470. What is UML? Unified Modeling Language –OMG Standard, Object Management Group –Based on work from Booch, Rumbaugh, Jacobson.
UNIFIED MODELING LANGUAGE(UML) BY Touseef Tahir Lecturer CS COMSATS Institute of Information Technology, Lahore.
CSCI-383 Object-Oriented Programming & Design Lecture 12.
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.
States.
CS3773 Software Engineering Lecture 06 UML State Machines.
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.
 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.
® IBM Software Group © 2009 IBM Corporation Module 11: Creating State Machine Diagrams Essentials of Modeling with IBM Rational Software Architect V7.5.
1 Object Oriented Analysis System modeling = Functional modeling + Object modeling + Dynamic modeling Functional modeling = Use cases Object modeling =class.
© 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1 Advanced UML State Diagrams.
State Machine Diagram.
State Machine Diagrams
Activity Diagram.
Visit for more Learning Resources
State Machine Diagrams
Activity Diagrams Activity diagrams describe the workflow behavior of a system.  The diagrams describe the state of activities by showing the sequence.
Business System Development
UML Activity Diagrams & State Charts
States.
Object Oriented System Design
CS/CPE 426 Senior Projects
Advanced State Chart diagrams
Week 12: Activity & Sequence Diagrams
Activity Diagrams.
CS/CPE 426 Senior Projects
States.
CS 791Z State Machines & Advanced State Machines
UML State Diagrams.
Appendix 3 Object-Oriented Analysis and Design
Behavioral Diagrams P. P. Mahale
Presentation transcript:

Information System Design IT60105 Lecture #13 14/09/2007 Information System Design IT60105 Lecture 13 Statechart Diagrams 14 September, 2007 Information System Design IT60105, Autumn 2007 IT60105: D.Samanta, SIT, IIT Kharagpur

Information System Design IT60105, Autumn 2007 Lecture #13 14/09/2007 Lecture #13 What is a Statechart diagram? Basic components in a state-chart diagram and their notations Examples: Process Order in OLP system 14 September, 2007 Information System Design IT60105, Autumn 2007 IT60105: D.Samanta, SIT, IIT Kharagpur

What is a Statechart Diagram? A state-chart diagram is used to model the dynamic aspects of the system. The basic idea is same as the state machine in Finite Automata We can draw state diagrams for each object involved in the system An object may be in several states of its life time. When a message arrives to an object (event) it undergoes certain operations (action) or changes its state A state diagram shows how an object will react to the arrival of an event Each reaction may be a sequence of actions, possibly accompanied by a transition from one named state to another An event represents the receipt of a signal, or the effect of an operation call An action represents the sending of a signal, or the call of an operation 14 September, 2007 Information System Design IT60105, Autumn 2007

General Structure of a Statechart Diagram A statechart diagram typically look like this 14 September, 2007 Information System Design IT60105, Autumn 2007

Basic Components in a Statechart Diagram Two basic elements are there Rounded rectangle box representing the state Labeled arrow indicating the transitions Here, event is the message that is sent guard condition is the Boolean expression of attribute values that allows a state transition only if the condition is true An action is the behavior that occurs when the state transition occurs 14 September, 2007 Information System Design IT60105, Autumn 2007

Detail State in a State-Chart Diagram Detail of state is shown below Entry actions: that are common to every incoming transition Exit actions: that are common to every outgoing transition Self-transition: action within the state itself If there is no guard or if the guard is true, then for the event the actions will be followed and it can enter [exit] to [from] a state or remain in the same state 14 September, 2007 Information System Design IT60105, Autumn 2007

Example: Stack Machine 14 September, 2007 Information System Design IT60105, Autumn 2007

Example: Statechart Diagram In the “Process Order” use case, the object that is being manipulated is, namely, ORDER. So, a state diagram can be drawn to model how the object changes its state in this particular use case 14 September, 2007 Information System Design IT60105, Autumn 2007

Statechart Diagram: Another Example Suppose, a COURSE is an object in a usual “Course Registration” use case (consider the SEIIT). Following is a state diagram to model the behavioral view of the object COURSE 14 September, 2007 Information System Design IT60105, Autumn 2007

Advantages of Statechart Diagram A statechart diagram is used to model how the state of an object changes in its life time Statechart diagrams are good describing how the behavior of an object change across several use case executions However, if we are interested in modeling some behavior that involves the several objects collaborating with each other, the statechart diagram is not appropriate 14 September, 2007 Information System Design IT60105, Autumn 2007

Example: Microwave Oven 14 September, 2007 Information System Design IT60105, Autumn 2007

More features in Statechart Diagram 14 September, 2007 Information System Design IT60105, Autumn 2007

Information System Design IT60105, Autumn 2007 Choice Pseudo-State A choice pseudo-state is shown as a diamond with one transition arriving and two or more transitions leaving. The following diagram shows that whichever state is arrived at after the choice pseudo-state is dependent on the message format selected during execution of the previous state 14 September, 2007 Information System Design IT60105, Autumn 2007

Choice Junction-State Junction pseudo-states are used to chain together multiple transitions. A single junction can have one or more incoming and one or more outgoing transitions and a guard can be applied to each transition. Junctions are semantic-free; a junction which splits an incoming transition into multiple outgoing transitions realizes a static conditional branch as opposed to a choice pseudo-state which realizes a dynamic conditional branch 14 September, 2007 Information System Design IT60105, Autumn 2007

Information System Design IT60105, Autumn 2007 History State A History State is used to remember the previous state of a state machine when it was interrupted. The following diagram illustrates the use of history states. The example is a state machine belonging to a washing machine 14 September, 2007 Information System Design IT60105, Autumn 2007

Information System Design IT60105, Autumn 2007 Concurrent State A state may be divided into regions containing sub-states that exist and execute concurrently. The example below shows that within the state "Applying Brakes", the front and rear brakes will be operating simultaneously and independently. Notice the use of fork and join pseudo-states rather than choice and merge pseudo-states. These symbols are used to synchronize the concurrent threads 14 September, 2007 Information System Design IT60105, Autumn 2007