How To Create A Diagram On Rational Software Development Platform



Similar documents
How to Get Images From Your Camera on to Your Computer

How to Use JCWHosting Reseller Cloud Storage Solution

E-commerce. Further Development 85

Optional Lab: Data Backup and Recovery in Windows 7

Data Crow Creating Reports

Lab - Data Backup and Recovery in Windows 7

TDDC88 Lab 2 Unified Modeling Language (UML)

The Reprographics Online E-Copy Process is used to submit print jobs to the RUSD Reprographics department.

Access your directories (home directory and shared directories) outside Tilburg University

WebSphere Business Monitor V6.2 Business space dashboards

Transferring Scans from your Dolphin into Destiny

How To Restore Your Data On A Backup By Mozy (Windows) On A Pc Or Macbook Or Macintosh (Windows 2) On Your Computer Or Mac) On An Pc Or Ipad (Windows 3) On Pc Or Pc Or Micro

Gorilla CRM System Installation Instructions

Using Rational Rose to Create Object-Oriented Diagrams

Instructions for downloading and installing the GPS Map update

Using Microsoft Expression Web to Upload Your Site

Tutorial Build a simple IBM Rational Publishing Engine (RPE) template for IBM Rational DOORS

Installing Remote Desktop Connection

NAS 254 Cloud Backup. Use Cloud Backup to backup your data to Amazon S3 A S U S T O R C O L L E G E

DEAR Inventory - Magento Integration Guide

Lab: Data Backup and Recovery in Windows XP

Model Simulation in Rational Software Architect: Business Process Simulation

AdminToys Suite. Installation & Setup Guide

Getting Started with CashierPRO Inventory Management

Software Development Environment. Installation Guide

Bonita Open Solution. Introduction Tutorial. Version 5.7. Application Development User Guidance Profile: Application Developer

Introduction to Pivot Tables in Excel 2003

Publishing Geoprocessing Services Tutorial

Visual Paradigm Quick Start

This guide provides step by step instructions for using the IMF elibrary Data - My Data area. In this guide, you ll learn how to:

Software Licensing Management North Carolina State University software.ncsu.edu

Lab - Data Backup and Recovery in Windows XP

South China Bullion Client Trading Terminal USER MANUAL

Tutorial on Building a web Application with Jdeveloper using EJB, JPA and Java Server Faces By Phaninder Surapaneni

Install Guide for Windows Office Professional Plus 2010

Planning a Network with Different Users, Hosts, and Services

What do you mean that I have to have special web pages to communicate with FileMaker?

Astah SysML Quick Start Manual for Version 1.0

The Basics - Macintosh OS X

INF 111 / CSE 121. Homework 4: Subversion Due Tuesday, July 14, 2009

Excel 2003 PivotTables Summarizing, Analyzing, and Presenting Your Data

Disabling Microsoft SharePoint in order to install the OneDrive for Business Client

Publishing, Consuming, Deploying and Testing Web Services

Optional Lab: Data Backup and Recovery in Windows Vista

Using FileMaker Pro with Microsoft Office

IBM TCP/IP Network Port Monitor

WebSphere Business Monitor V7.0 Business space dashboards

Rochester Institute of Technology. Oracle Training: Advanced Financial Application Training

Information Technology Solutions

HADS 2.1.0e Installation and migration

How to Create Your Own Crystal Report

Check out our website!

Step 1 Registering and Installing VMWare Fusion on a Macintosh

Table of Contents. zipform 6 User Guide

Outlook to Windows Live Mail

WA1802 SOA for Architects Using WebSphere ESB. Student Labs. Web Age Solutions Inc.

Shopping Cart Software

Create a New Database in Access 2010

Rational Application Developer v7.0 (RAD7) trial version. Installation guide

Outlook . Step 1: Open and Configure Outlook

Other Procedures That Relate To Using MS Outlook All Of These Procedures Are Available For Download In PDF Format From The Any Key Press Website

Tutorial of Website s New Features

How to Use the Billericay School Portal

How to setup Backup Anywhere on your local PC

Downloading RIT Account Analysis Reports into Excel

WebSphere Business Monitor V7.0: Clustering Single cluster deployment environment pattern

SQL Server 2014 BI. Lab 04. Enhancing an E-Commerce Web Application with Analysis Services Data Mining in SQL Server Jump to the Lab Overview

MS Excel Template Building and Mapping for Neat 5

Create a Web Service from a Java Bean Test a Web Service using a generated test client and the Web Services Explorer

How to Connect to Berkeley College Virtual Lab Using Windows

LepideAuditor Suite for File Server. Installation and Configuration Guide

T320 E-business technologies: foundations and practice

MyEclipse UML (MyUML) Quickstart

Mesa DMS. Once you access the Mesa Document Management link, you will see the following Mesa DMS - Microsoft Internet Explorer" window:

FAQ. F-Secure Online Backup 2.1

Frequently Asked Questions

Microsoft Lync TM Order & Provisioning. Admin Guide

Getting started with OneDrive

FileMaker Pro and Microsoft Office Integration

Module A2 Item Activities, Gantt Chart and Utilization Sheet. A2.1 Project item activities A2.2 Gantt chart A2.3 Utilization sheet

Filtering Spam Using Outlook s Rule

What is OneDrive for Business at University of Greenwich? Accessing OneDrive from Office 365

WebSphere Business Monitor V6.2 KPI history and prediction lab

Software Requirements Specification. Online Shop Software

E-Commerce Installation and Configuration Guide

Lab - Data Backup and Recovery in Windows Vista

SQL Server 2005: Report Builder

PT-100 Temperature Measurement

GUARD1 PLUS Mini-Attendant File Manager User's Guide Version 2.71

Making the Most of Files & Folders. Schoolwires Centricity2

How To Use The Syndicate Bank Rsa Security Token For Internet Banking On Pc Or Mac Or Mac (For A Web Browser) For A Long Time (For An Ipad) For Free (For Free) For An Unlimited Time) For Your

How to Attach the Syllabus and Course Schedule to a Content Item

APPLYING BENFORD'S LAW This PDF contains step-by-step instructions on how to apply Benford's law using Microsoft Excel, which is commonly used by

DSP Laboratory: Analog to Digital and Digital to Analog Conversion

Developing Physical Solutions for InfoSphere Master Data Management Server Advanced Edition v11. MDM Workbench Development Tutorial

6 USING WINDOWS XP 6.1 INTRODUCTION

Figure 1: Restore Tab

Virtual Communities Operations Manual

HOW TO ACCESS YOUR ONEDRIVE FOR BUSINESS DOCUMENTS

Lab 3: Introduction to Data Acquisition Cards

Transcription:

Homework 7: Use Cases, Sequence Diagram, Activity Diagram, State Diagram Name : Student Number : Laboratory Time : Objectives Create a Use Case Diagram in Rational Software Development Platform Create a Sequence Diagram in Rational Software Development Platform Create an Activity Diagram in Rational Software Development Platform Create a State Diagram in Rational Software Development Platform Preamble In the last lab we learned how to create Class Diagrams from Java Code and vice versa. In this lab, we will learn how to create Use Case Diagrams, Sequence Diagrams, Activity Diagrams, and State Diagrams using Rational Software Development Platform. Grading Checklist (30 points) By the end of the laboratory session, you need to demonstrate to the TA that you can do the following tasks. The TA will check off the items below that you have completed and collect this cover page from you. Use Case Diagram Initial Sequence Diagram (Steps 1-6) Completed Sequence Diagram Activity Diagram State Diagram TA Initials: 1/15

Task 1: Create a UML Use Case Diagram Instructions for the Laboratory For this task, you will create a UML Use Case Diagram using Rational Software Development Platform. It will be based on the requirements provided to you. a) Start Rational Software Development Platform. b) Change the Workspace location to H:\UMLDiagrams\workspace c) Click on Workbench. d) Create a new Project. Go to File -> New -> Project 2/15

e) Select the UML Project wizard. Click Next. f) In the Project name field, enter DVDStore_Diagrams. Click Next. 3/15

g) Select Blank Model template. In the File name, enter UseCase_DVDStore. Click Finish. h) Select Main under UseCase_DVDStore in the Model Explorer. Expand the Use Case Diagram section in the Palette. Select the objects you need to create for the next step using the Use Case Diagram Palette. 4/15

i) Create the UML Use Case Diagram for a system to buy DVDs online. Customers, Delivery Agent, and Administrators of the System will use the system. They can perform the following actions in the system: Customer: Add a DVD to shopping cart (requires the user to log in) Remove a DVD from shopping cart (requires the user to log in) Check out shopping cart (requires the user to log in) Review contents of shopping cart (requires the user to log in) Search DVDs by Title and Category (Some examples of categories are: Series, Movies, Music) Delivery Agent: Check online orders Change the status of the order to delivered Administrator: Add DVD Update inventory of DVDs Note: Use the include and extend relationships as needed. The multiplicity in all cases can be * Preparation for Task 2: Import a Class Diagram of the DVD Online Store into Rational Software Development Platform For this task, you will add a UML Class Diagram for the DVD Online Store provided to you into the current DVDStore_Diagrams project. You need to do this, so that you can create sequence diagrams in the next task in this lab. a) Download the Class_DVDStore.emx from the class Website and save it on your computer (in this example, it is saved on the Desktop.) b) In order to add the model Class_DVDStore.emx that you downloaded, select the project DVDStore_Diagrams, and then go to File -> Import. 5/15

c) In the Import window, choose File system and click Next. d) To import a file, select the folder (Desktop) where you saved Class_DVDStore.emx and check Class_DVDStore.emx. Click Finish. 6/15

e) In the Model Explorer, you can see the imported Class_DVDStore.emx. Double click on the model Class_DVDStore.emx to see its contents. Task 2: Create a Sequence Diagram in Rational Software Development Platform For this task, you will create a UML Sequence Diagram for the Use Case Check out shopping cart using Rational Software Development Platform. It will be based on the Use Case description provided below: Use Case Name Scope Level Primary Actor Stakeholders and Interests Preconditions Success Guarantee Main Success Scenario Check out shopping cart DVD Online Store subfunction Customer Bank System Customer wants to buy DVDs The DVD store wants to sell DVDs and charge money for the DVDs Bank System wants to process credit card information to charge money The customer is registered in the system and the user is logged in The order is placed 1. The Customer presses the Check out button 2. The system shows the contents of the shopping cart and asks for the Shipping Address 3. The Customer enters the Shipping Address 4. The system asks for credit card information 5. The Customer enters credit card information 6. The system sends the payment information to the Bank system 7. The Bank system returns transaction OK 8. The System creates the Order 9. The System sends a notification to the Deliver man 10. The System shows the Confirmation of Place Order page 7/15

Extensions Special Requirements Technology and Data Variations List Frequency Miscellaneous 7. If the Bank system returns transaction NO OK, the system should show an Error Page explaining the reason of the failure. The store expects 1 orders placed every 10 minutes a) Create the Sequence Diagram in Rational Software Development Platform. Select the Class_DVDStore model under the Class_DVDStore.emx. Right click on it and select Add Diagram -> Sequence Diagram. b) Change the name Diagram 1 to Check out Shopping Cart. 8/15

c) Using the Sequence Diagram Palette, create a Lifeline for Customer. Select the option Unspecified and rename the Lifeline as Customer. d) Create Lifelines for ShoppingCart, Order, Bank System, and Delivery Agent. e) Create a Synchronous message using the Palette. Drag the mouse from Customer to Shopping Cart. Rename the message Presses Check Out button. f) Select the return message. In the properties view, change the Name of the message to Show contents and asks for shipping address. 9/15

g) The Sequence Diagram for the first 6 steps in the Main Scenario of the Extended Use Case Format will look similar to the following diagram. Notice that step 5 has been created using an Asynchronous Message. Task 3: Complete the remaining steps in the Sequence Diagram a) Add events to the sequence diagram corresponding to steps 7-10 of the Main Success Scenario. You should use a Create Message for step 8, and synchronous or asynchronous messages when necessary. Task 4: Create an Activity Diagram in Rational Software Development Platform 10/15

For this task, you will create a UML Activity Diagram to depict the business process for processing an online DVD order. There are three parties involved processing an online DVD order: Shipping, Online Sales, and Accounting. The process starts when The Online Sell Unit receives information of an order of DVDs from a user. Then to complete the order, the DVD Store needs to charge the credit card of the user and needs to deliver the DVD. To charge the credit card, Online Sales will send the credit card information of the user to Accounting, who will then validate and process the credit card. To deliver the DVD, Shipping will first fill the order. Then based on the delivery option selected by the user, the DVD is either delivered at a normal speed or is rushed delivered. Once the DVD is delivered and the credit card is charged, the order is closed. a) Create the Activity Diagram in Rational Software Development Platform. Select the Class_DVDStore model under the Class_DVDStore.emx. Right click on it and select Add Diagram -> Activity Diagram. b) Change the diagram name to Processing Order Activity. c) Add Partition by Right Click near the name Activity1. Then select Add UML -> Activity Partition. d) Create another partition. You will have a total of three partitions. Rename these partitions to Shipping, Online Sales, and Accounting as seen in the following picture. 11/15

e) Start adding components in the diagram using the Activity Diagram Palette. First, select Initial from the Activity Diagram Palette and add it to the Online Sell Unit partition. Then create an Action node and rename it to Receive DVD Order. Create a control flow from the Initial node to the Receive DVD Order node. f) Create a Fork node and connect it to the Receive DVD Order using a Control Flow. g) Add objects from the Activity Diagram Palette to complete the Activity Diagram as seen in the following picture. You don t have to include the notes in the diagram. 12/15

Task 5: Create a State Diagram in Rational Software Development Platform For this task, you will create a UML State Diagram of the ShoppingCart object of the Online DVD Store using Rational Software Development Platform. The ShoppingCart object can be in three states: Empty, Ready for Check Out, and Checking Out. The ShoppingCart starts in the Empty state. When a user adds an item, the ShoppingCart will transit to the Ready for Check Out state. The Shopping cart will continue to be in this state while more items are added. The ShoppingCart will transit to Checking Out state when the user is checking out the items in the cart. Once the user finishes checking out, the ShoppingCart will transit back to the Empty state. a) Create the State Diagram in Rational Software Development Platform. Select the Class_DVDStore model under the Class_DVDStore.emx. Right click on it and select Add Diagram -> State Machine Diagram. b) Rename the diagram to ShoppingCart State Machine c) Complete the State Machine using the State Machine Palette. The finished diagram should look like the diagram figure below. To add a guard condition, Click on a Transition and add the guard condition in the Body field in the Guard area. 13/15

14/15

Take Home 1. (40 points) Draw a sequence diagram for depict how the system calculates the charges when a DVD is returned. You can assume that the objects needed to create DVDVendor (for example TransactionDB) already exist. Make sure your diagram clearly shows which objects are created when calculating charges in the return transaction. The order in which objects are created or invoked is important. Objects that you must include are o DVDVendor, o PaymentCollector, o TransactionDB, o CheckOutCart, o ReturnTransaction, and o BarCode. You can include other objects if you need them to show the return transactions. You can use the calculatecharges method in edu.uci.ics.inf111.dvdvendor.gui.actions as starting point for your diagram. 2. (20 points) Create a state chart diagram to show the states and transitions in the DVDVendor class (checkoutstate enumeration). For each state, make sure to include the state name. For each transition, make sure to include the event name and guard condition when applicable. Submit both diagrams in a single document (Word or pdf). 15/15