1 Object Oriented Analysis System modeling = Functional modeling + Object modeling + Dynamic modeling Functional modeling = Use cases Object modeling =class.

Slides:



Advertisements
Similar presentations
State Charts Mehran Najafi. Reactive Systems A reactive, event-driven, object is one whose behavior is best characterized by its response to events dispatched.
Advertisements

Nested state diagrams:Problems with flat state diagram
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.
1 Behavioral Modeling Chapter 8. 2 Key Ideas Behavioral models describe the internal dynamic aspects of an information system that supports business processes.
Dynamic Modeling. Dynamic Modeling with UML Interaction diagram –Dynamic behavior of a set of objects arranged in time sequence –Interaction between objects.
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.
Lecture 5 …a bit more about UML Sequence diagrams Collaboration diagrams State-chart diagrams CRC cards.
Using UML, Patterns, and Java Object-Oriented Software Engineering Chapter 5, Analysis: Dynamic Modeling.
THE OBJECT-ORIENTED DESIGN WORKFLOW Statechart Diagrams.
Advanced Behavioral Modeling
Using UML, Patterns, and Java Object-Oriented Software Engineering Chapter 5, Analysis: Dynamic Modeling.
SE-565 Software System Requirements More UML Diagrams.
1 Lab Beginning Analysis and Design 4 Completion of first version of use case diagram initiates the processes of analysis and design. 4 UML provides.
State and Sequence Diagrams Modelling dynamic information So far we have seen: Use Case Diagrams – requirements capture, interface.
Lecture 4 Finite State Machine CS6133 Software Specification and Verification.
Chapter 10 State Machine Diagrams
Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 1 Dynamic Modeling.
Chapter 8: Modelling Interactions and Behaviour UML Activity Diagram
Slide 16B.51 © The McGraw-Hill Companies, 2005 Object-Oriented and Classical Software Engineering.
State diagrams Interaction diagrams –Sequence diagrams –Collaboration diagrams Object orientation Part 4: Dynamic Modeling.
NJIT Modeling Behavior in State Chart Diagrams Chapter 29 Rafael Mello.
State Modeling.
1 Software Engineering Dr. K. T. Tsang Lecture 8 State modeling
 2000 Deitel & Associates, Inc. All rights reserved. Optional Case Study - Chapter 3 Outline 3.1 Introduction 3.2 Class Attributes 3.3 Statechart Diagrams.
1 Modeling interactions and behavior Lecturer Dr. Mai Fadel.
Behavioral Modeling Chapter 8.
1 A Student Guide to Object- Oriented Development Chapter 7 State Diagrams.
The Unified Modeling Language Part II Omar Meqdadi SE 2730 Lecture 9 Department of Computer Science and Software Engineering University of Wisconsin-Platteville.
Course Instructor: Kashif Ihsan 1. Chapter # 3 2.
Information System Design IT60105
1 Kyung Hee University Statecharts Spring Kyung Hee University Specifying Objects’ Behaviour  Interaction diagrams show message-passing behaviour.
State Modeling. Introduction A state model describes the sequences of operations that occur in response to external stimuli. As opposed to what the operations.
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.
© 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1 UML State Diagrams.
States.
CS3773 Software Engineering Lecture 06 UML State Machines.
State Chart diagram Week objective Describe State chart Diagrams in Dynamic Modelling 2.
Interaction Diagram An interaction diagram is a graphical representation of interactions between objects. Sequence diagram: shows the sequence in which.
Conquering Complex and Changing Systems Object-Oriented Software Engineering Chapter 5, Analysis: Dynamic Modeling.
Statechart Diagrams. Creating a Statechart Diagram A Statechart diagram shows the life cycle of a single object, from the time that it is created until.
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.
Communication Diagrams Lecture 8. Introduction  Interaction Diagrams are used to model system dynamics  How do objects change state?  How do objects.
Using UML, Patterns, and Java Object-Oriented Software Engineering Chapter 5, Analysis: Dynamic Modeling.
The Dynamic Analysis Model StateCharts Prof. Hany H. Ammar, CSEE, WVU, and Dept. of Computer Science, Faculty of Computers and Information, Cairo University.
1 Object Oriented Analysis System modeling = Functional modeling + Object modeling + Dynamic modeling Functional modeling = Use cases Object modeling =class.
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 Systems Analysis and Design Behavioral Modeling Chapter 8 (Last one before the Midterm!)
Chapter 5: Analysis Dynamic Modeling. Outline of the Lecture  Dynamic modeling  Sequence diagrams  State diagrams  Using dynamic modeling for the.
State Machine Model.
Chapter 5, Analysis: Dynamic Modeling
Communication DIAGRAM
State Machine Diagrams
Chapter 8: Modelling Interactions and Behaviour UML Activity Diagram
CSC 422 Kutztown University Dr. Spiegel
States.
Object Oriented System Design
Classification of UML Diagrams
CIS 375 Bruce R. Maxim UM-Dearborn
Chapter 5 state Modeling
Communication DIAGRAM
Dynamic Modeling Lecture # 37.
States.
Sample Test Questions Please identify the use cases of the system that cover all the behaviors described in the system specification. Please identify.
CIS 375 Bruce R. Maxim UM-Dearborn
Object Oriented System Design Class Diagrams
Behavioral Diagrams P. P. Mahale
UML State Diagrams (Ch. 29)
Presentation transcript:

1 Object Oriented Analysis System modeling = Functional modeling + Object modeling + Dynamic modeling Functional modeling = Use cases Object modeling =class diagrams Dynamic modeling – Interaction Diagrams Sequence diagrams Collaboration diagrams – State diagrams (activity diagrams) Describe the static structure of the system

2 Dynamic Modeling with UML Two UML diagrams types for dynamic modeling: – Interaction diagrams describe the dynamic behavior between objects – Statechart diagrams describe the dynamic behavior of a single object. Purpose: – Detect and supply operations for the object model.

3 UML Interaction Diagrams Two types of interaction diagrams: – Sequence Diagram: Describes the dynamic behavior of several objects over time Good for real-time specifications – Collaboration Diagram: Shows the temporal relationship among objects Position of objects is based on the position of the classes in the UML class diagram. Does not show time,

4 UML State Chart Diagram State Chart Diagram: – A state machine that describes the response of an object of a given class to the receipt of outside stimuli (Events). Activity Diagram: – A special type of state chart diagram, where all states are action states (Moore Automaton). Classes without interesting dynamic behavior are not modeled with state diagrams

State Chart Diagram vs Sequence Diagram State chart diagrams help to identify: – Changes to an individual object over time Sequence diagrams help to identify: – The temporal relationship of between objects over time – Sequence of operations as a response to one ore more events.

Dynamic Modeling We distinguish between two types of operations: – Activity: Operation that takes time to complete associated with states – Action: Instantaneous operation associated with events A state chart diagram relates events and states for one class An object model with several classes with interesting behavior has a set of state diagrams

UML State chart Diagram Notation State1 Event(attr) [condition]/action entry /action exit/action Note: – Events are italics – Conditions are enclosed with brackets: [] – Actions and activities are prefixed with a slash / do/Activity State2 Event with parameters attr Guard condition Action Name of State Actions and Activities in State

State An abstraction of the attributes of a class – State is the aggregation of several attributes of a class State has duration

Notations A state is drawn as a rounded box containing a name. The state name appears in bold face A transition is drawn as an arrow from the receiving state to the target state. Event names are written on the transition arrow, optionally followed by one or more attributes within parentheses. A condition is a Bollean function of object values. Conditions can be guards on transitions. A guarded transition fires only when the event occurs and the condition is true. Conditions are shown as expressions in square brackets following the event name and its parameter list.

Example ATM machine ATM machine object

Actions An action follows the event name and/or the condition by the slash (/) character. Events that cause an action without causing a state change are written inside the state box. Internal transition: When it occurs, neither the entry nor exit action is executed. Self-transition: when it occurs, entry and exit actions are executed. Events sent to other objects are shown in dashed lines.

Self-transition Internal transition

Example of Vending Machine Dispensing change do/Make change Dispensing do/Dispense item Idle [item empty] [select(item)] [change=0] [change>0] [change<0] coins_in(amount) / set balance cancel / refund coins Collecting Money coins_in(amount) / add to balance do/Test item and compute change vending machine object Calculating