More on Dynamic Models - Page L14-1 Full 2002M.E. Fayad Lesson 14: More about Dynamic Models Object- Oriented Modeling & Applications.

Slides:



Advertisements
Similar presentations
Requirements Diagrams With UML Models
Advertisements

UML State Machine Diagrams and Modeling
Behavioral Modeling: State Diagrams CIS 4800 Kannan Mohan Department of CIS Zicklin School of Business, Baruch College Copyright © 2009 John Wiley & Sons,
Interaction Modeling for Testing We would generate the test cases based on our understanding of the interactions that may happen. The source is, again,
Statecharts Slide: 1. Objectives Learn the concepts for modeling object states Learn Statechart notation to depict object state models Do some modelling…
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.
Finite state machines.
Lecture 5a: Sequence Interaction Diagrams CSE 111 Copyright W. Howden1.
© 2005 Prentice Hall12-1 Stumpf and Teague Object-Oriented Systems Analysis and Design with UML.
Advanced Topics in Behavior Analysis - Page L15-1 Full 2002Dr. M.E. Fayad Lesson 15: Advanced Topics in Behavior Analysis Object- Oriented Modeling & Application.
Advanced Topics in Behavior Analysis - Page L15-1 MEF-OOM&A-L15-1 Dr. M.E. Fayad Lesson 15: Advanced Topics in Behavior Analysis Object- Oriented Modeling.
Object Oriented Analysis OOA. OOA Deliverables Static Object model –one single diagram Scenarios –set of diagrams Object Dictionary –one set of comprehensive.
1 COMP541 State Machines Montek Singh Feb 6, 2007.
THE OBJECT-ORIENTED DESIGN WORKFLOW Statechart Diagrams.
STD -- Development & Testing Procedures - Page L16-1 MEF-OOM&A-L16-1 Dr. M.E. Fayad Lesson 16: STD -- Development & Testing Procedures Object- Oriented.
SE-565 Software System Requirements More UML Diagrams.
Lecture 10 Topics: Sequential circuits Basic concepts Clocks
State and Sequence Diagrams Modelling dynamic information So far we have seen: Use Case Diagrams – requirements capture, interface.
State Machines State diagrams SE-2030 Dr. Rob Hasker 1 Based on slides written by Dr. Mark L. Hornick Used with permission.
Rosen 5th ed., ch. 11 Ref: Wikipedia
Chapter 10 State Machine Diagrams
State Diagrams / System Sequence Diagrams (SSDs)
1 COMP541 State Machines Montek Singh Feb 8, 2012.
Fall 2010 CS4310 Requirements Engineering UML: Dynamic Modeling Dr. Guoqiang Hu Department of Computer Science UTEP 1.
Benjamin Gamble. What is Time?  Can mean many different things to a computer Dynamic Equation Variable System State 2.
Guide to State Transition Diagram. 2 Contents  What is state transition diagram?  When is state transition diagram used?  What are state transition.
Object-Oriented Modeling Using UML CS 3331 Section 2.3 of Jia 2003.
1 State Modeling  Events  States  Transitions and Conditions  State Diagrams  State Diagram Behavior  Practical Tips.
1 A Student Guide to Object- Oriented Development Chapter 7 State Diagrams.
7 Systems Analysis and Design in a Changing World, Fifth Edition.
Introduction to State Machine
Information System Design IT60105
UML Discussion on State Machines Perfectly static system is intensely uninteresting Because nothing ever happens.
System Testing Beyond unit testing. 2 System Testing Of the three levels of testing, system level testing is closest to everyday experience We evaluate.
Chapter 11 Activity Diagrams. 2 “Activity diagrams are a technique to describe procedural logic, business processes, and work flows” - M. Fowler An 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.
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.
Systems Analysis and Design in a Changing World, Fourth Edition
States.
CS3773 Software Engineering Lecture 06 UML State Machines.
PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 3rd Edition Copyright © 2009 John Wiley & Sons, Inc. All rights.
SOFTWARE DESIGN AND ARCHITECTURE LECTURE 26. Review UML behavioral Diagrams – Sequence diagram.
Domain Model A representation of real-world conceptual classes in a problem domain. The core of object-oriented analysis They are NOT software objects.
Digital System Design using VHDL
State Machines State diagrams SE-2030 Dr. Mark L. Hornick 1.
Modeling Object Lifecycles and State-Dependent Behavior ©SoftMoore ConsultingSlide 1.
Dynamic Models - Page L M.E. Fayad Lesson 30: Dynamic Models Object- Oriented Modeling & Application s.
1 COMP541 Finite State Machines - 1 Montek Singh Sep 22, 2014.
The Dynamic Analysis Model StateCharts Prof. Hany H. Ammar, CSEE, WVU, and Dept. of Computer Science, Faculty of Computers and Information, Cairo University.
Simulation Examples And General Principles Part 2
Chapter 7 Behavioral Modeling Brandon A. Jones Stand and Deliver ITEC March 6, 2011.
Govt. Engineering College- Gandhinagar. It is all about……  STATE MACHINE.
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 COMP541 Sequential Logic – 2: Finite State Machines Montek Singh Feb 29, 2016.
DISCRETE DYNAMICS EEN 417 Fall Midterm I In class on 10/4 Covered Material will be: Chapter 1 (Introduction) Chapters 2 & 3 (Continuous and Discrete.
State Machine Model.
AS Computer Studies Finite State Machines 1.
State Machine Diagram.
1.3 Finite State Machines.
ANALYSIS OF SEQUENTIAL CIRCUITS
Static and Dynamic Modeling Using UML
FSM Controllers ENGR 110 #
Lesson 16: State-Based Sequential Design
States.
Dynamic Modeling Lecture # 37.
States.
UML Diagrams: StateCharts The Dynamic Analysis Model
UML State Diagrams.
Presentation transcript:

More on Dynamic Models - Page L14-1 Full 2002M.E. Fayad Lesson 14: More about Dynamic Models Object- Oriented Modeling & Applications

More on Dynamic Models - Page L14-2 Full 2002M.E. Fayad Lesson Objectives oLearn about the modes of behavior oUnderstand object mode diagram and patterns of behavior oLearn about moore and Mealy machines. oUnderstand object dynamic and concurrency oLearn the concepts of STDs oLearn the notation of state charts or STD oLearn how to develop a STD

More on Dynamic Models - Page L14-3 Full 2002M.E. Fayad Modes of Behavior Behavior is the way in which machine, organ or mechanism works with respect to its efficiency. The way in which some things reacts to its environment. Things often exhibit several modes of behaviors, each of which can be named. In a particular mode of behavior an instance may be involved in an interaction with another instance, transforming, processing input information into output.

More on Dynamic Models - Page L14-4 Full 2002M.E. Fayad Object Mode Diagram Object Mode Diagram is a model that illustrates the modes of behavior of an object. Each mode in the diagram is denoted by a named box The interpretation of each mode is briefly indicated in the name in the box. A more detailed definition of each mode should be in the data or object dictionary. Object Mode Diagram exposes the modes of behavior of a class of things but hides the details of how transitions between the modes occur. Example: Open Closed Opening Closing Door

More on Dynamic Models - Page L14-5 Full 2002M.E. Fayad Patterns of Behavior Instances of a class can exhibit a common pattern of behavior by moving between different modes of behavior in a deterministic manner. A description of behavior in terms of modes is a qualitative description. The pattern is a form between modes associated by the “may-be / is-followed by” relationship. Example: –“On” is followed by “Off” –“Off” is followed by “On” The may-be / is-followed-by relationship determines which mode follows which other mode in time, not space. A transition is the term that describes when an instance moves from one mode of behavior to another.

More on Dynamic Models - Page L14-6 Full 2002M.E. Fayad Moore Machines or Moore’s STD A Moore Machine is a type of finite state machine (FSM). Specific activities are associated with the states, regardless of the history of transitions to a state. Example: –When I am angry I frown but when I am happy I smile.

More on Dynamic Models - Page L14-7 Full 2002M.E. Fayad Moore’s STD: Example Open Turn on light Closed 1. Turn on dishwasher 2. Watch TV Opening Sound alarm Closing Sound alarm Door

More on Dynamic Models - Page L14-8 Full 2002M.E. Fayad Mealy Machines A Mealy Machine is a type of finite state machine (FSM). Specific actions are associated with specific transitions.

More on Dynamic Models - Page L14-9 Full 2002M.E. Fayad Initial & Final Transitions An initial transition, with no previous mode, denotes the “creation or appearance” event, such as open account. The initial transition is labeled with the transition condition that caused the thing to be “created” or to “appear” in the domain. Actions and activities may be associated with the “creation” transitions. A final transition from each final mode, to no other state, denotes the “deletion” event, such as close account. Each final transition is labeled with the transition condition that caused the thing to be “deleted”. Actions and activities may be associated with the “deletion” transitions.

More on Dynamic Models - Page L14-10 Full 2002M.E. Fayad Object Behavior Model The model describing the behavior of a class of things is termed Class Behavior Model, Dynamic Model, or Control Model. For Object Modeling: –Modes have a finite lifetime. –Transitions take infinitesimal duration. –Zero or more initial transitions are required. –Zero or more final transitions are required.

More on Dynamic Models - Page L14-11 Full 2002M.E. Fayad Object Dynamics The Class Behavior Model or STD describes the possible behavior of any instance. Each instance is considered to be in only one of the modes at a time. Objects having a STD with a 2 or more modes are called Dynamic Objects. Objects having a STD with only one mode are called Static Objects. Things that apparently exhibit 2 or more fairly independent “threads” of behavior can be modeled by a 2 or more “synchronized” STDs, such as human arms and head.

More on Dynamic Models - Page L14-12 Full 2002M.E. Fayad Transition Conditions A transition condition can be defined as any proposition “X” in the sentence “When X”. “X” is a proposition, denoting an event that can be true or false: –It is time to stop or It is noon. X is a proposition denoting a condition that can be true or false: –The light is on. A simple logical expression involving at most one event and one or more conditions: –It is time to slow down or it is time to stop. A complex logical expression of the form: –(a1 and b1) xor (a2 and b2),.... xor (an and bn). A transition is taken when the transition condition is true.

More on Dynamic Models - Page L14-13 Full 2002M.E. Fayad Transition Actions When an instance transitions from one mode to another it changes the way in which it interacts with its environment; that is, it changes its behavior. This is called Transition Actions and are simple expression “Y” in “When X do Y”. IN STD, the changes in behavior are recorded along the transition condition.

More on Dynamic Models - Page L14-14 Full 2002M.E. Fayad The transition actions of an object are limited to:  Starting/Enabling a new activity/process/transformation for the instance. The process is considered to be active in the next mode interacting with other instances. The activity is considered to take a finite duration equal to the life-time of the next mode.  Stoping/Disabling an existing activity/process/transformation for the instance. The process that must have been active in the previous mode is terminated. More on Transition Actions

More on Dynamic Models - Page L14-15 Full 2002M.E. Fayad  Doing/Triggering a discrete action/process/transformation for the instance. The action is considered to take an infinitesimal duration.  Asserting/Setting a condition describing the instance, to be true.  Refuting/Clearing a condition to become false. The condition must be of interest to other things. ‘Causing/Signaling/Pulsing the occurrence of an event, in the object instance, for another instance. More on Transition Actions

More on Dynamic Models - Page L14-16 Full 2002M.E. Fayad More on Transition Actions Transition actions are the instances response to an event/happening. Transition actions must have no sequence to them. If there is an implicit sequence then a behavior mode has been omitted. As transitions take infinitesimal duration, instances spend all of their time in stable modes, waiting for transitions to occur.

More on Dynamic Models - Page L14-17 Full 2002M.E. Fayad Activities and Actions Activities: Activities are also referred to as Processes or Transformations Accept inputs and convert them instantaneously into outputs for a finite duration. See DFDs. Actions: Actions are also referred to as Processes or Transformations Accept inputs and convert them instantaneously into outputs for an infinitesimal duration.

More on Dynamic Models - Page L14-18 Full 2002M.E. Fayad Mealy’s STD: Notation State –State of “an object or a class” Transition –Change of state Condition(s) & Action(s) –Describes condition for transition –Describe action resulting from Transition State Transition –Initiation of transaction –Processing of transaction Condition Action Condition Action

More on Dynamic Models - Page L14-19 Full 2002M.E. Fayad A Car Example Car Ignition Transmission Brake Accelerator

More on Dynamic Models - Page L14-20 Full 2002M.E. Fayad Ignition STD Off On Starting Ready to stop Turn key off Ready to start 1. Transmission in neutral 2. Turn key to start Ready to go Release key

More on Dynamic Models - Page L14-21 Full 2002M.E. Fayad Transmission STD Neutral Reverse First Ready to stop Push N Ready to cruise Upshift Going backward Push R Forward Second X Downshift Ready to cruise Upshift X Downshift Forward

More on Dynamic Models - Page L14-22 Full 2002M.E. Fayad Accelerator STD Off On Ready to accelerate Depress accelerator Ready to slow down Release accelerator

More on Dynamic Models - Page L14-23 Full 2002M.E. Fayad Brake STD Off On Ready to stop or slow down Depress brake Ready to go or speed up Release brake

More on Dynamic Models - Page L14-24 Full 2002M.E. Fayad Define patterns of behavior, mode of behaviors, activity, and an action. What are the differences between Moore machines and Mealy machines? Describe concurrency with examples What are the transition conditions and what are the causes of these transition conditions? What are the transition actions? Describe how to achieve temporal transition conditions and actions? What is the state transition matrix? Discussion Questions