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.

Slides:



Advertisements
Similar presentations
1 After completing this lesson, you will be able to: Specify options. Customize the appearance of messages. Add a signature to an .
Advertisements

Microsoft Office XP Microsoft Excel
Presented by: Benefits Systems Support. Getting Started ê Open Powerpoint, create a blank presentation. ê Select a style for your first slide from the.
Using CD-R and CD-RW media to backup SIGNZ data. Step One … a bit of preparation.
Fireworks MX. 2 Lesson 1a—Create Slices & Hotspots n Fireworks allows you to add animation (behaviors) already written in ___________. n However, users.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t PowerPoint Project 1 Using a Design Template and Text Slide Layout to Create a Presentation.
Using a Template to Create a Resume and Sharing a Finished Document
This presentation contains the following: -the availability and need menu options -the add option Mark Smith.
CHAPTER © 2011 The McGraw-Hill Companies, Inc. All rights reserved. 11 Scheduling.
1 of 2 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
© I-Logix Rhapsody C++ V /01/2004 E1-1 Exercise 3 : Dishwasher.
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.
PowerPoint Transitions & Animations
Using Microsoft Outlook: Basics. Objectives Guided Tour of Outlook –Identification –Views Basics –Contacts –Folders –Web Access Q&A.
Collaborating with Outlook 2002 and Exchange 2000.
Automating Tasks with Macros. Macro Essentials  A macro is a list of actions that happen when you run the macro.  Creating a Macro: − Choose Create.
Chapter 9 Macros, Navigation Forms, PivotTables, and PivotCharts
Microsoft Visual Basic 2005 CHAPTER 8 Using Procedures and Exception Handling.
E- MAIL APPLICATION CALENDAR MODUL. B ENEFITS OF CALENDAR Calendar sharing. Outlook Web App now enables your users to share their calendars with people.
In Shape with Visio Creating a Timeline To create a timeline 1.Open Visio Under Category, click Project Schedule. 3.Click Timeline, and.
CHAPTER © 2013 The McGraw-Hill Companies, Inc. All rights reserved. 3 Scheduling.
Return to the Word 2007 web page Lesson 3:Creating a Memorandum and a Press Release.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Dynamic Action with Macromedia Dreamweaver MX Barry Sosinsky Valda Hilley.
Chapter 6 Advanced Report Techniques
©2005 Academic Computing Services, NJIT 1 Outlook 2003 Appointment, Event and Meeting Scheduling Presenter: Jolanta Soltis Academic Computing Services.
Office 2003 Advanced Concepts and Techniques M i c r o s o f t Access Project 5 Enhancing Forms with OLE Fields, Hyperlinks, and Subforms.
Outlook 2003 Outlook 2003 Appointment, Event and Meeting Scheduling Presenter: Jolanta Soltis Academic Computing Services.
1 of 8 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
1 NORMA Lab. 2 Revision: Unary and Binary Fact Types Ternary Fact Types Inclusive-Or Constraints External Uniqueness Constraints Value Constraints Derived.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 7 Using Menus, Common Dialogs, Procedures, Functions, and Arrays.
Office 2003 Advanced Concepts and Techniques M i c r o s o f t Access Project 5 Enhancing Forms with OLE Fields, Hyperlinks, and Subforms.
Microsoft Office 2007 Access Chapter 6 Using Macros, Switchboards, PivotTables, and PivotCharts.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
Program Design and Coding
Microsoft Visual Basic 2012 CHAPTER THREE Program Design and Coding.
Screen ViewModule Title: Notes: Branching Instructions: Audio Script: Page: Messaging Configure the Address Book 1 Configure the Personal Address Book.
WS14-1 VND101, Workshop 14 MSC.visualNastran 4D Exercise Workbook Foot Support.
©2006 Academic Computing Services, NJIT 1 Outlook 2003.
1 NORMA Lab. 5 Duplicating Object Type and Predicate Shapes Finding Displayed Shapes Using the Diagram Spy Using Multiple Windows Using the Context Window.
WS09-1 VND101, Workshop 09 MSC.visualNastran 4D Exercise Workbook Belted Cylinder.
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Access Project 7 Advanced Report and Form Techniques.
Microsoft Outlook 2010 Chapter 3 Managing Contacts and Personal Contact Information with Outlook.
Inserting an AutoShape. This is the “Drawing” toolbar, located at the bottom of the screen.
Copyright 2007, Paradigm Publishing Inc. ACCESS 2007 Chapter 2 BACKNEXTEND 2-1 LINKS TO OBJECTIVES Creating Related Tables Creating Related Tables Determining.
Microsoft Access 2010 Chapter 8 Advanced Form Techniques.
Sequence Diagrams And Collaboration Diagrams HungNM.
Click your mouse to continue. The Office Shortcut Bar The Office Shortcut Bar contains program buttons that, when clicked, start new documents or start.
Vector logos Help Guide. Getting started Open a blank Word document. Get the ‘Drawing’ toolbar on display: Click on View on the toolbar. Select Toolbars.
1 Kyung Hee University Statecharts Spring Kyung Hee University Specifying Objects’ Behaviour  Interaction diagrams show message-passing behaviour.
Fall 2003Sylnovie Merchant, Ph.D. ACCESS Tutorial Note: The purpose of this tutorial is to provide an introduction to some of the functions of ACCESS in.
1 Outlook 2003 Information Technology June 17, 2003.
Information Systems Engineering Activity Diagram 1.
Interaction Diagram An interaction diagram is a graphical representation of interactions between objects. Sequence diagram: shows the sequence in which.
Advanced InterAct. A quick way of reading through multiple messages is to “summarize” them. This will make them appear as a list in a single message box.
Tutorial 7 Creating Animations. XP Objectives Learn about animation Create a timeline Add AP divs and graphics to a timeline Move and resize animation.
Adding Contacts in Outlook. Follow these steps to begin building your contacts! By adding contacts in your Outlook, you will be able to develop an organized.
Debugging tools in Flash CIS 126. Debugging Flash provides several tools for testing ActionScript in your SWF files. –The Debugger, lets you find errors.
Microsoft Visual Basic 2012 CHAPTER FIVE Decision Structures.
Chapter 7 Multiple Forms, Modules, and Menus. Section 7.2 MODULES A module contains code—declarations and procedures—that are used by other files in a.
Working with Tables A table is a grid of cells arranged in rows and columns. Tables can be customized and are useful for various tasks such as presenting.
1 Pertemuan 10 Using Type Matakuliah: U0344 / DESKTOP 1 Tahun: 2006.
1 Object Oriented Analysis System modeling = Functional modeling + Object modeling + Dynamic modeling Functional modeling = Use cases Object modeling =class.
1 After completing this lesson, you will be able to: Create and edit hyperlinks in worksheets. Save worksheets and workbooks as Web pages. Send workbooks.
Identifying & Creating Use Cases – Part 2
SQL MODELER - OPEN There are Three Ways to open the SQL Modeler
Mail Merge And Macros in MS WORD
Epic Basic Appointment Scheduling Patient Preferences
Lesson 4: Managing Events in Case Tracking
Identifying & Creating Use Cases - Part 3
Information Systems Engineering
Presentation transcript:

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 it is destroyed. These diagrams are a good way to model the dynamic behavior of a class. –1. Right−click the desired class in the browser. –2. Select New / Statechart Diagram from the pop−up menu.

Adding States A state is one of the possible conditions in which an object may exist. –1. Select State from the toolbox toolbar. –2. Click on the Statechart diagram where the state should appear. OR –Select Tools/ Create / State. –Click on the Statechart diagram where the state should appear.

To add documentation to a state: 1.Double−click the desired state to open the state specification window. 2.Select the General tab. 3.Enter documentation in the Documentation field.

Adding State Details There are five types of information you can include for a state: an activity, an entry action, an exit action, an event, or a state history.

Activity

Entry Action An entry action is a behavior that occurs while the object is transitioning into the state.

Exit Action An exit action is similar to an entry action. However, an exit action occurs as part of the transition out of a state.

Activity The behavior in an activity, entry action, or exit action can include sending an event to some other object. For example, if the flight is delayed for more than four hours, the flight object may need to send an event to a flight scheduler object, which will automatically reschedule the flight for another day. In this case, the activity, entry action, or exit action is preceded by a caret (^). The diagram would then read:

Activity

To add an activity: 1.Open the specification window for the desired state. 2.Select the Action tab. 3.Right−click the Actions box. 4.Select Insert from the pop−up menu. 5.Double−click the new action. 6.Enter the action in the Actions field. 7.In the When box, select Do to make the new action an activity.

To add an entry action: 1.Open the specification window for the desired state. 2.Select the Action tab. 3.Right−click the Actions box. 4.Select Insert from the pop−up menu. 5.Double−click the new action. 6.Enter the action in the Actions field. 7.In the When box, select On Entry.

To add an exit action: 1.Open the specification window for the desired state. 2.Select the Action tab. 3.Right−click on the Actions box. 4.Select Insert from the pop−up menu. 5.Double−click the new action. 6.Enter the action in the Actions field. 7.In the When box, select On Exit.

To add an action that occurs on a specific event: 1.Open the specification window for the desired state. 2.Select the Action tab. 3.Right−click the Actions box. 4.Select Insert from the pop−up menu. 5.Double−click the new action. 6.Enter the action in the Actions field. 7.In the When box, select On Event. 8.Enter the event that triggers the action, along with any arguments of the event and any guard conditions that control whether or not the action should occur. If the guard condition is true, the action will occur on the event. If not, the action will not occur, even if the event happens.

To send an event: 1.Open the specification window for the desired state. 2.Select the Detail tab. 3.Right−click the Actions box. 4.Select Insert from the pop−up menu. 5.Double−click the new action. 6.Select Send Event as the type. 7.Enter the event, arguments, and target in their respective fields

Adding Transitions 1.Select Transition from the toolbox toolbar. 2.Click on the state where the transition begins. 3.Drag the transition line to the state where the transition ends.

To add a reflexive transition 1.Select Transition to Self from the toolbox toolbar. 2.Click on the state where the reflexive transition occurs.

To add documentation to a transition: 1.Double−click the desired transition to open the specification window. 2.Select the General tab. 3.Enter documentation in the Documentation field.

Adding Transition Details There are various specifications you can include for each transition. These include events, arguments, guard conditions, actions, and send events.

Event An event is something that causes a transition from one state to another to occur. On the diagram, an event can be drawn using an operation name or simply using an English phrase Events can have arguments. For example, when removing a passenger, we will need the name of the passenger to be removed.

Guard Condition A guard condition controls when a transition can or cannot occur. In the airline example, adding a passenger will move the flight from the Open to the Full state, but only if the last seat was sold. The guard condition in this example is "Last seat was sold.“ A guard condition is drawn along the transition line, after the event name, and enclosed in square brackets.

Action An action, as we mentioned above, is a noninterruptible behavior that occurs as part of a transition. Entry and exit actions are shown inside states, because they define what happens every time an object enters or leaves a state. For example, when transitioning from the Scheduled state to the Open state, we may want to initialize the number of passengers at 0. An action is shown along the transition line, after the event name, and preceded by a slash.

Adding Transition Details An event or action may be a behavior that occurs inside the object or a message that is sent to another object. If an event or action is sent to another object, it is preceded by a caret (^) on the diagram.

To add an event: 1.Double−click the desired transition to open the specification window. 2.Select the General tab. 3. Enter the event in the Event field.

To add arguments to an event: 1.Double−click the desired transition to open the specification window. 2.Select the General tab. 3.Enter the arguments in the Arguments field.

To add a guard condition: 1.Double−click the desired transition to open the specification window. 2. Select the Detail tab. 3. Enter the guard condition in the Condition field.

To add an action: 1.Double−click the desired transition to open the specification window. 2. Select the Detail tab. 3. Enter the action in the Action field.

To send an event: 1.Double−click the desired transition to open the specification window. 2. Select the Detail tab. 3.Enter the event in the Send Event field. 4. Enter any arguments in the Send Arguments field. 5. Enter the target in the Send Target field.

Create a Statechart Diagram Create the Statechart diagram shown in

Exercise Steps: Create the Diagram –1.Locate the Product class in the browser. –2. Right−click the class and select New Statechart Diagram.

Exercise Steps Add the Start and Stop States 1.Select Start State from the toolbox. 2.Place the state on the diagram. 3.Select End State from the toolbox. 4.Place the state on the diagram.

Add the States 1. Select State from the toolbox. 2. Place the state on the diagram. 3. Name the state Ordered. 4. Select State from the toolbox. 5. Place the state on the diagram. 6.Name the state Inventoried.

Add the States 7.Select State from the toolbox. 8.Name the state Out of Stock. 9.Select State from the toolbox. 10.Name the state Selected for Purchase. 11. Select State from the toolbox. 12.Place the state on the diagram. 13.Name the state Purchased.

Add Transitions 1. Select Transition from the toolbox. 2. Click the Start State. 3. Drag the transition line to the Ordered state.

4. Repeat steps 1–3 to add the following transitions: –Ordered to Out of Stock –Ordered to Inventoried –Inventoried to Selected for Purchase –Selected for Purchase to Inventoried –Selected for Purchase to Purchased –Purchased to End State –Out of Stock to End State –Inventoried to End State

Add Transition Details 1.Double−click the Ordered to Out of Stock transition to open the specification. 2.Select the Detail tab. 3.In the Guard Condition field, enter backordered. 4. Click OK to close the specification.

Add Transition Details 5. Repeat steps 1–4 to add the guard conditions to the following transitions: