READING STATECHART DIAGRAMS

Similar documents
CONSTRUCTING STATECHART DIAGRAMS

THE LIFE OF AN OBJECT IT SYSTEMS

Differentiation Applications 1: Related Rates

This section is primarily focused on tools to aid us in finding roots/zeros/ -intercepts of polynomials. Essentially, our focus turns to solving.

CS 477/677 Analysis of Algorithms Fall 2007 Dr. George Bebis Course Project Due Date: 11/29/2007

Introduction to Spacetime Geometry

Cambridge Assessment International Education Cambridge Ordinary Level. Published

Physics 2010 Motion with Constant Acceleration Experiment 1

A solution of certain Diophantine problems

Chapter Summary. Mathematical Induction Strong Induction Recursive Definitions Structural Induction Recursive Algorithms

Hypothesis Tests for One Population Mean

MODULE FOUR. This module addresses functions. SC Academic Elementary Algebra Standards:

We can see from the graph above that the intersection is, i.e., [ ).

, which yields. where z1. and z2

Purpose: Use this reference guide to effectively communicate the new process customers will use for creating a TWC ID. Mobile Manager Call History

A B C. 2. Some genes are not regulated by gene switches. These genes are expressed constantly. What kinds of genes would be expressed constantly?

Activity Guide Loops and Random Numbers

Getting Involved O. Responsibilities of a Member. People Are Depending On You. Participation Is Important. Think It Through

CAUSAL INFERENCE. Technical Track Session I. Phillippe Leite. The World Bank

Subject description processes

Thermodynamics Partial Outline of Topics

2004 AP CHEMISTRY FREE-RESPONSE QUESTIONS

Purchase Order Workflow Processing

Lab 1 The Scientific Method

Five Whys How To Do It Better

Name: Block: Date: Science 10: The Great Geyser Experiment A controlled experiment

CHAPTER 24: INFERENCE IN REGRESSION. Chapter 24: Make inferences about the population from which the sample data came.

CHM112 Lab Graphing with Excel Grading Rubric

Experiment #3. Graphing with Excel

making triangle (ie same reference angle) ). This is a standard form that will allow us all to have the X= y=

The steps of the engineering design process are to:

Matter Content from State Frameworks and Other State Documents

Chem 163 Section: Team Number: ALE 24. Voltaic Cells and Standard Cell Potentials. (Reference: 21.2 and 21.3 Silberberg 5 th edition)

How can standard heats of formation be used to calculate the heat of a reaction?

If (IV) is (increased, decreased, changed), then (DV) will (increase, decrease, change) because (reason based on prior research).

Unit 14 Thermochemistry Notes

AIP Logic Chapter 4 Notes

Bootstrap Method > # Purpose: understand how bootstrap method works > obs=c(11.96, 5.03, 67.40, 16.07, 31.50, 7.73, 11.10, 22.38) > n=length(obs) >

Chapter 17 Free Energy and Thermodynamics

How do scientists measure trees? What is DBH?

Flipping Physics Lecture Notes: Simple Harmonic Motion Introduction via a Horizontal Mass-Spring System

Lesson Plan. Recode: They will do a graphic organizer to sequence the steps of scientific method.

B. Definition of an exponential

A Chemical Reaction occurs when the of a substance changes.

Assessment Primer: Writing Instructional Objectives

SPH3U1 Lesson 06 Kinematics

CS1150 Principles of Computer Science Loops

Pipetting 101 Developed by BSU CityLab

CHAPTER Read Chapter 17, sections 1,2,3. End of Chapter problems: 25

Trigonometric Ratios Unit 5 Tentative TEST date

Homework #7. True False. d. Given a CFG, G, and a string w, it is decidable whether w ε L(G) True False

ENG2410 Digital Design Sequential Circuits: Part A

CHAPTER 4 DIAGNOSTICS FOR INFLUENTIAL OBSERVATIONS

Part One: Heat Changes and Thermochemistry. This aspect of Thermodynamics was dealt with in Chapter 6. (Review)

FIZIKA ANGOL NYELVEN JAVÍTÁSI-ÉRTÉKELÉSI ÚTMUTATÓ

AP Physics. Summer Assignment 2012 Date. Name. F m = = + What is due the first day of school? a. T. b. = ( )( ) =

Mark Scheme (Results) January International GCSE Mathematics B (4MB0) Paper 01

AP Literature and Composition. Summer Reading Packet. Instructions and Guidelines

N C R S I L V E R Q U A N T U M F A Q

ALE 21. Gibbs Free Energy. At what temperature does the spontaneity of a reaction change?

Please Stop Laughing at Me and Pay it Forward Final Writing Assignment

Editorial Calendar User Guide

Flipping Physics Lecture Notes: Simple Harmonic Motion Introduction via a Horizontal Mass-Spring System

WRITING THE REPORT. Organizing the report. Title Page. Table of Contents

A New Evaluation Measure. J. Joiner and L. Werner. The problems of evaluation and the needed criteria of evaluation

Medium Scale Integrated (MSI) devices [Sections 2.9 and 2.10]

Study Group Report: Plate-fin Heat Exchangers: AEA Technology

Interference is when two (or more) sets of waves meet and combine to produce a new pattern.

Thermochemistry. Thermochemistry

BASD HIGH SCHOOL FORMAL LAB REPORT

Romeo and Juliet Essay

CHE 105 EXAMINATION III November 11, 2010

Kinetic Model Completeness

Review Problems 3. Four FIR Filter Types

The Law of Total Probability, Bayes Rule, and Random Variables (Oh My!)

The Brief Non-Suicidal Self-Injury Assessment Tool (BNSSI-AT)

SPECIMEN. Candidate Surname. Candidate Number

ANSWER KEY FOR MATH 10 SAMPLE EXAMINATION. Instructions: If asked to label the axes please use real world (contextual) labels

Making and Experimenting with Voltaic Cells. I. Basic Concepts and Definitions (some ideas discussed in class are omitted here)

2.161 Signal Processing: Continuous and Discrete Fall 2008

CHAPTER 3 INEQUALITIES. Copyright -The Institute of Chartered Accountants of India

MODULE 1. e x + c. [You can t separate a demominator, but you can divide a single denominator into each numerator term] a + b a(a + b)+1 = a + b

1 PreCalculus AP Unit G Rotational Trig (MCR) Name:

Three charges, all with a charge of 10 C are situated as shown (each grid line is separated by 1 meter).

DEFENSE OCCUPATIONAL AND ENVIRONMENTAL HEALTH READINESS SYSTEM (DOEHRS) ENVIRONMENTAL HEALTH SAMPLING ELECTRONIC DATA DELIVERABLE (EDD) GUIDE

SUPPLEMENTARY MATERIAL GaGa: a simple and flexible hierarchical model for microarray data analysis

SticiGui Chapter 4: Measures of Location and Spread Philip Stark (2013)

4th Indian Institute of Astrophysics - PennState Astrostatistics School July, 2013 Vainu Bappu Observatory, Kavalur. Correlation and Regression

E-Waybill in Tally.ERP9. V e r s i o n : 1. 0 g s a n t r a w e b. c o m w w w. t a l l y h e l p. c o m

Web-based GIS Systems for Radionuclides Monitoring. Dr. Todd Pierce Locus Technologies

Tutorial 3: Building a spectral library in Skyline

Aristotle I PHIL301 Prof. Oakes Winthrop University updated: 3/14/14 8:48 AM

Homology groups of disks with holes

Turing Machines. Human-aware Robotics. 2017/10/17 & 19 Chapter 3.2 & 3.3 in Sipser Ø Announcement:

Lab #3: Pendulum Period and Proportionalities

Sections 15.1 to 15.12, 16.1 and 16.2 of the textbook (Robbins-Miller) cover the materials required for this topic.

How can standard heats of formation be used to calculate the heat of a reaction?

Thermodynamics and Equilibrium

Name: Period: Date: BONDING NOTES ADVANCED CHEMISTRY

Transcription:

READING STATECHART DIAGRAMS Figure 4.48 A Statechart diagram with events The diagram in Figure 4.48 shws all states that the bject plane can be in during the curse f its life. Furthermre, it shws the pssible transitins between the states and the events that initiate these transitins. Each bject f the class plane cmes frm nwhere (1) (initial state) and disappears (generally) again, int nthing (10) (final state). This usually hlds true fr all classes, meaning in mst classes yu will find an initial state (1) and a final state (10).Over the curse f its life, an plane (please nte: we are here talking abut the bject plane and nt abut a real airplane) can take up three states: rdered (3),in maintenance (5), and ready fr use (7) The event «M» plane rdered, leads t the ccurrence, that frm nwhere (1) a new plane bject is created in the IT system (birth). Immediately after it has been created it is in the state rdered (3). If the event «M» plane delivered (4) ccurs, and the plane is the state rdered (3), it changes t the state in maintenance (5). If the plane is in any ther state than rdered, nthing happens. Thrugh the events «M» plane available (6) and «M» plane nt available (8), the plane changes any number f times between the states in maintenance (5) and ready fr use (7). At the end f its life, the airplane bject disappears thrugh the event «M» plane withdrawn (9) int nthing (10), meaning it will be deleted (death). Figure 4.49 shws mre elements that can ccur in statechart diagrams:

Figure 4.49 Statechart diagram with internal transitins and guard cnditins. In additin t the transitins we have already explained, there are als internal transitins. The event«m» assign plane (1), which ccurs when the plane is assigned t a flight, initiates n transitin t anther state. Rather, the plane remains in the state ready fr use (2). This cnstitutes an internal transitin; the plane bject is in the same state ready fr use (2) befre and after the event. A guard cnditin allws acceptance r rejectin f an event depending n a cnditin. If in the statescheduled fr maintenance (3) the event «M» cmplete flight (4) ccurs, the respnse f the bject depends n the guard cnditin stated in brackets. If the cnditin [mre flights] (5) is true (meaning there are mre flights assigned t the plane) an internal transitin takes place. The plane remains in the state scheduled fr maintenance (3). Hwever, if the cnditin [n mre flights] is true (meaning n ther flights are assigned t the plane) a transitin t the state in maintenance (7) takes place. Figure 4.50 Statechart diagram

Actins indicate hw an bject respnds t a mutatin event. Figure 4.50 shws several types f actins. An actin always fllws the slash (1) after the event. The actins CREATE (2) and SET registratin number = (input) (4) fllw the mutatin event «M» plane rdered. CREATE indicates that a new bject is created; SET registratin number = (input) indicates that a value, which the user entered in the use case, is assigned t the attribute registratin number. Individual actins are divided by a semicln (;) (3). In additin t these semi-frmal actins, such as CREATE and SET (seecnstructing Statechart Diagrams), actins can als be described in free text. Fllwing the mutatin event «M» assign plane is the actin create relatinship t flight (5), which indicates that a relatinship t a flight bject is created. If n actin is stated fr an event (6), this can either mean that the actin has nt yet been specified, r that the bject merely transitins int anther state. Gaining a deeper understanding f ur case study, yu will ntice that the statechart diagram in Figure 4.50 will have t be amended with further states and events. A statechart diagram that dcuments all pssible paths f an bject cannt simply be read in a sequential manner. Hwever, it helps the reader t answer several typical questins: What happens t the bject if a certain event ccurs? Since the answer t this questin in each case depends n the current state f the bject, the questin shuld really be: Hw des an bject in a certain state respnd t a certain event? Which events are relevant fr the bject? Hw, meaning thrugh which events, can a certain state be left? Hw, meaning thugh which events, can a certain state be achieved? Let's try t answer sme f these questins by lking at the statechart diagram f the class plane in Figure 4.51:

Figure 4.51 Selective reading f a statechart diagram Hw des a plane bject in the state ready fr use (1) react t the event «M» assign plane? In rder t answer this questin, we have t check first if the event «M» assign plane even exists in the stateready fr use (1). The event is allwed if a transitin (an arrw) t anther state exists that is labeled with the event name, r if an internal transitin exists (an entry in the lwer part f the state symbl). In ur example, a transitin t anther state des nt exist but an internal transitin des. This means: A plane bject in the state ready fr use (1) accepts the event «M» assign plane and remains in the state ready fr use (1). Hw des a plane bject in the state scheduled fr maintenance (2) react t the event «M» cmplete flight? In rder t answer this questin we check first if the event «M» cmplete flight even exists in the state scheduled fr maintenance (2). In ur example, we have a transitin t anther state, as well as an internal transitin. Since nly ne transitin is pssible, (the plane bject is suppsed t be in exactly ne definite state and nt tw) we need criteria in rder t determine which transitin is suppsed t take place. Here, we have the help f the guard cnditins [mre flights] (3) and[nmre flights] (4). We have t check if there are mre flights assigned t the plane. In ur case we assume that n mre flights are assigned t the plane. This means: A plane bject in the statescheduled fr maintenance (2) accepts the event «M» cmplete flight and transitins t the state in maintenance (5), since n mre flights are assigned t it. Hw des a plane bject in the state scheduled fr maintenance (2) react t the event «M» assign flight? In rder t answer this questin, we check first if the event «M» assign flight even exists in the state scheduled fr maintenance (2). In ur example, neither a transitin t anther state nr an internal transitin

exists. This means: A plane bject in the state scheduled fr maintenance (2) des nt accept the event «M» assign plane. (The IT system shuld infrm the user abut the reasn why assigning the plane did nt wrk.) Which events are relevant fr a plane bject? The answer is: All events that are cntained in the statechart diagram f the class plane, meaning all events that are accepted in at least ne state. All ther events are nt relevant fr the plane bject. This means: The nly events relevant fr a plane bject are «M» plane rdered, «M» plane delivered, «M» plane available, «M» plane nt available,«m» assign plane, «M» cmplete flight, «M» scheduling plane fr maintenance, and «M» plane withdrawn. Thrugh which event can the plane bject leave the state in maintenance (5)? In rder t answer this questin, we search all transitins (arrws) that g frm the state in maintenance (5) t anther state. Our example has tw such transitins. This means: A plane bject in the state in maintenance(5) can nly leave this state thrugh the event «M» plane available, r «M» plane withdrawn. Thrugh which events des a plane bject reach the state ready fr use (1)? In rder t answer this questin, we search fr all transitins (arrws) that lead t the state ready fr use (1). Our example has exactly ne such transitin. This means: A plane bject can nly reach the state ready fr use(1) thugh the event «M» plane available (namely, frm the state in maintenance (2)). The questins discussed have already shwn that in statechart diagrams, what is nt written is just as imprtant as what is written. Events that d nt exist in a certain state are nt accepted if the bject is in this state. This means that an event that was nt accepted cannt be successfully executed within the IT system. An apprpriate errr message has t be generated. Events that d nt exist in any state are always ignred. The fllwing statements can be read frm the statechart diagram fr the plane bject: The questins discussed have already shwn that in statechart diagrams, what is nt written is just as imprtant as what is written. Events that d nt exist in a certain state are nt accepted if the bject is in this state. This means that an event that was nt accepted cannt be successfully executed within the IT system. An apprpriate errr message has t be generated. Events that d nt exist in any state are always ignred. The fllwing statements can be read frm the statechart diagram fr the plane bject: If a plane is delivered it is never directly in the state ready fr use, it is always first in the state in maintenance. A plane ready fr use cannt be withdrawn. If this is attempted anyway, the mutatin event fails with an apprpriate errr message.