LAB 1: Introduction to Unified Modeling Language (UML) and Visual Paradigm for UML Software as a CASE* Tool

Similar documents
GOOGLE DOCS APPLICATION WORK WITH GOOGLE DOCUMENTS

Appointment Scheduler

MS WORD 2007 (PC) Macros and Track Changes Please note the latest Macintosh version of MS Word does not have Macros.

Microsoft PowerPoint 2010 Handout

LAB 6: Code Generation with Visual Paradigm for UML and JDBC Integration

From Data Modeling to Data Dictionary Written Date : January 20, 2014

File Management With Windows Explorer

Create a Poster Using Publisher

I ntroduction. Accessing Microsoft PowerPoint. Anatomy of a PowerPoint Window

Word basics. Before you begin. What you'll learn. Requirements. Estimated time to complete:

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

Lab 2: MS ACCESS Tables

BIGPOND ONLINE STORAGE USER GUIDE Issue August 2005

Creating tables of contents and figures in Word 2013

Windows XP Managing Your Files

WHAT S NEW IN WORD 2010 & HOW TO CUSTOMIZE IT

Excel 2007 Basic knowledge

Migrating to Excel 2010 from Excel Excel - Microsoft Office 1 of 1

Introduction to Visio 2003 By Kristin Davis Information Technology Lab School of Information The University of Texas at Austin Summer 2005

Microsoft Office Access 2007 Basics

PowerPoint 2013: Basic Skills

Ohio University Computer Services Center August, 2002 Crystal Reports Introduction Quick Reference Guide

Microsoft Publisher 2010 What s New!

Creating Forms With Adobe LiveCycle Designer 8.2

Using PowerPoint Short Course

Microsoft Word Quick Reference Guide. Union Institute & University

Microsoft PowerPoint Tutorial

Integrated Accounting System for Mac OS X

Making a Web Page with Microsoft Publisher 2003

Outlook basics. Identify user interface elements that you can use to accomplish basic tasks.

Introduction to Word 2007

TUTORIAL 4 Building a Navigation Bar with Fireworks

INTRODUCTION TO DESKTOP PUBLISHING

Quick Start Guide. Microsoft Publisher 2013 looks different from previous versions, so we created this guide to help you minimize the learning curve.

Introduction to Microsoft PowerPoint

NAVIGATION TIPS. Special Tabs

Outlook 2010 Essentials

Microsoft Word 2013 Tutorial

Microsoft PowerPoint 2010

Content Author's Reference and Cookbook

Microsoft Migrating to Access 2010 from Access 2003

Bitrix Site Manager 4.1. User Guide

Microsoft Word 2010 Prepared by Computing Services at the Eastman School of Music July 2010

Microsoft Outlook Introduction

In this session, we will explain some of the basics of word processing. 1. Start Microsoft Word 11. Edit the Document cut & move

BLACKBOARD CONTENT COLLECTION FACULTY TRAINING GUIDE

Working together with Word, Excel and PowerPoint 2013

Microsoft Access 2010 handout

CORSAIR GAMING KEYBOARD SOFTWARE USER MANUAL

CATIA Basic Concepts TABLE OF CONTENTS

Access Tutorial 1 Creating a Database

Getting Started with Access 2007

2) Sharing Projects Made easy by IntelliGantt s Share Wizard, there are three share options to fit the needs of your project.

Task Card #2 SMART Board: Notebook

TxEIS on Internet Explorer 7

New Features in Microsoft Office 2007

Using the Query Analyzer

Module One: Getting Started Opening Outlook Setting Up Outlook for the First Time Understanding the Interface...

In list view, the Finder window displays folder or volume contents as a list, which can be sorted by name, date, kind, or other criteria.

Excel 2003 A Beginners Guide

Introduction. POP and IMAP Servers. MAC1028 June 2007

ICP Data Entry Module Training document. HHC Data Entry Module Training Document

Section 1: Ribbon Customization

for Sage 100 ERP Business Insights Overview Document

Chapter 4: Website Basics

Creating a Poster in PowerPoint A. Set Up Your Poster

Microsoft Office 2007

Microsoft Word 2011: Create a Table of Contents

Introduction to Microsoft Word 2003

Microsoft Migrating to Word 2010 from Word 2003

Internet Explorer 7. Getting Started The Internet Explorer Window. Tabs NEW! Working with the Tab Row. Microsoft QUICK Source

WebPlus X8. Quick Start Guide. Simple steps for designing your site and getting it online.

1.5 MONITOR. Schools Accountancy Team INTRODUCTION

WebFOCUS BI Portal: S.I.M.P.L.E. as can be

Outlook . User Guide IS TRAINING CENTER. 833 Chestnut St, Suite 600. Philadelphia, PA

Microsoft Office 2010

Micro Cam Software. User Manual V1.3

Visual Studio.NET Database Projects

Foxit Reader Quick Guide

Adobe InDesign Creative Cloud

How to Configure Windows 8.1 to run ereports on IE11

Where do I start? DIGICATION E-PORTFOLIO HELP GUIDE. Log in to Digication

Tyler Dashboard. User Guide Version 6.2. For more information, visit

Introduction To Microsoft Office PowerPoint Bob Booth July 2008 AP-PPT5

Microsoft Word 2010 Tutorial

POWERPOINT BASICS: MICROSOFT OFFICE 2013

Microsoft Office Excel 2007 Key Features. Office of Enterprise Development and Support Applications Support Group

Using the SAS Enterprise Guide (Version 4.2)

Integrated Invoicing and Debt Management System for Mac OS X

User Guide. Chapter 6. Teacher Pages

Business Warehouse Reporting Manual

14.1. bs^ir^qfkd=obcib`qflk= Ñçê=emI=rkfuI=~åÇ=léÉåsjp=eçëíë

TurboNest. What s New. Version Released April Copyright 2014 Hypertherm, Inc. All rights reserved.

Getting Started Guide

Chapter 9 Slide Shows

Lab Activity File Management with Windows Explorer Windows XP, Vista, Windows 7 and Windows 8 Brought to you by RMRoberts.com

Microsoft Office PowerPoint Creating a new presentation from a design template. Creating a new presentation from a design template

IT Quick Reference Guides Using Windows 7

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

Transcription:

LAB 1: Introduction to Unified Modeling Language (UML) and Visual Paradigm for UML Software as a CASE* Tool * Computer Aided Software Engineering OBJECTIVES Introduction to UML notations and diagrams. Hands on exposure of Visual Paradigm software for UML involving analysis and design with UML diagrams. INTRODUCTION Definition of Unified Modeling Language (UML) UML is a standard language for specifying, visualizing, constructing, and documenting for large software systems, as well as for business modeling and other non-software systems. Considered a very important part of developing object oriented software and software development process. UML uses graphical notations to express design of software projects and its requirements. Common Types of UML Diagrams UML defines several types of diagrams: class (package), object, use case, sequence, collaboration, statechart, activity, component, and deployment. Type Description Diagram Display Use Case Diagram Use case diagrams model the functionality of system using actors and use cases. Nor Samsiah Binti Sani 1

Class Diagram Class diagrams are the backbone of almost every object oriented method, including UML. They describe the classes of the system, their interrelationships, and the operations and attributes of the classes. Object Diagram A diagram that shows a complete or partial view of the structure of a modeled system at a specific time. They can be used to test class diagrams for accuracy. useful for exploring real world examples of objects and the relationships between them Sequence Diagram Sequence diagrams describe interactions among classes in terms of an exchange of messages over time. Interactions Diagram Represent interactions between objects as a series of sequenced messages. Collaboration diagrams describe both the static structure and the dynamic behavior of a system. Modified after: http://www.smartdraw.com/resources/tutorials/introduction-to-uml Nor Samsiah Binti Sani 2

USING Visual Paradigm for UML (VP-UML) Launching VP-UML and Workspace Configuration TU2943: Information Engineering Methodology Lab Notes, 2009-2010, To activate an instance of VP-UML: In windows desktop, highlight and click START > Visual Paradigm > Visual Paradigm for UML 7.1 Standard Edition. A workspace launcher will be displayed when VP-UML is started: It is recommended to set your workspace path in your Documents folder. The workspace launcher dialogbox Nor Samsiah Binti Sani 3

If you want to disable the workspace launcher from appearing again, check Use this as the default and do not ask again at the bottom of the window box. This will cause the VP-UML to automatically open the selected workspace next time. Please note that a Workspace is an important directory which stores all your project settings / configurations, diagrams and reports / analysis. Importing an (existing) workspace VP-UML also allows the import of an existing workspace, usually the case when such workspace is located elsewhere, or existed previously. To do this, click the Import Workspace button to launch another dialog box. The path of the existing workspace can be defined in the dialog as shown below: Nor Samsiah Binti Sani 4

Interface Overview 1 2 4 3 5 No Name Description 1 Menu and Toolbar Options for configuration, editing and execution. 2 Diagram Navigator Various explorers placed here for accessing project data from different domains and listing of diagrams. 3 Various Auxiliary Panes Auxiliary panes displaying panes like property pane, preview pane, documentation pane and stencil pane shown here. 4 Diagrams Pane / Analysis Pane Diagrams are displayed in this frame. Reports or analysis are also shown here. 5 Message Pane Messages generated by various operations displayed here. Nor Samsiah Binti Sani 5

Menu Toolbar Menu Toolbar> File Menu The File Menu in short allows project and file control features: Create a project Create a diagram Open and saving of projects Project Template related operations (Saving and Maintenance) Import of project data from different UML software file formats Menu Toolbar> Edit Menu The Edit Menu enables: Undo and Redo Cut or Copy Select everything in a diagram Jump to a diagram or an element Grouping Shapes alignment and distribution Nor Samsiah Binti Sani 6

Menu Toolbar> View Menu The View Menu enables: Show / hide a pane Show and manage grid Management of layers Zoom diagram in and out Manage nickname and style Menu Toolbar> Tool Menu The Tool Menu allows: Generation of reports Publish project Perform use case scheduling Open various kinds of element grid Configure requirements Configure programming language Perform Integrated Development Environment (IDE) integration Perform Teamworks operation Management of shapes through Shape Editor Management of license keys Nor Samsiah Binti Sani 7

Menu Toolbar> Window Menu The Window Menu enables: Navigation between opened diagrams Rearrangement of diagram windows Switching to another diagram Close diagram/s Menu Toolbar> Help Menu The Help Menu allows easy access to VP- UML manual and online help. CREATING PROJECTS Each diagrams and model elements created in VP-UML must be defined within a project. To create a project, click under Menu toolbar, File > New Project, and a dialog box will pop out. Nor Samsiah Binti Sani 8

Apply the following options as part of your project specification: UML version : UML 2.1 Language : Java Project Name : Exam Registration System Author : <your_name> Note that for this lab conducted in UKM, Java is the preferred language, although any language integration (with VP-UML) is possible. Press the Create Blank Project button when done. Creating projects by Project Templates Some users who have been using VP-UML for some time may have their own preferences when creating a new project. For example, he might want to have at least 10 predefined Use Case diagrams in each of his new project. To allow this, a project template can be defined to be used later when creating a new project. To create project from template, select the Template page and select Sample Template, then click Create from Template button. Notice that your project will have each 1 Use Case Diagram, Class Diagram, Sequence Diagram and Activity Diagram compared to a blank project. Nor Samsiah Binti Sani 9

Creating projects by importing other CASE tool project TU2943: Information Engineering Methodology Lab Notes, 2009-2010, For users wishing to migrate from other legacy projects with other CASE tools (e.g Rational Rose, AgroUML), those projects can also be imported into VP-UML. To do this: Select the Other CASE Tools Project page, and select either Import from Rose to import a Rational Rose project (.mdl), or Import from XMI to import XMI file exported from the CASE tool. Click Create from Other CASE Tools to import the project. Saving Projects Visual Paradigm for UML saves all project content to a single file, with file extension.vpp. To save a project, select under Menu Toolbar, File > Save Project. The first time you save the project will cause the Save Project dialog box to appear (shown above). Nor Samsiah Binti Sani 10

Note that you can also save your project either in your predefined workspace or a specific directory. Saving project > to Workspace To save project to workspace, select Save to workspace. The project file will be saved in the workspace directory, as shown above. Saving project > to Directory To save project to a specificed directory (other than workspace default path), select Save to Directory and specify the direction path in the Direction field. CREATING, DELETING AND MODIFYING DIAGRAMS You can create a diagram in a number of ways: Using toolbar; Diagrams Shortcut Icons Nor Samsiah Binti Sani 11

Using new diagram dialog box; TU2943: Information Engineering Methodology Lab Notes, 2009-2010, Or, Using popup menu of diagram navigator. Nor Samsiah Binti Sani 12

Similarly, you can also delete a diagram in the diagram navigator. To do this, create a diagram first by: Under the Menu Toolbar, click File > New Diagram > UML Diagrams > Use Case Diagram to create an empty Use Case Diagram. Now highlight Use Case Diagram1 by right clicking and click the Delete option. The diagram will be deleted. Delete option Also remember that you can rename your diagram at anytime, choose the Rename option instead of Delete to perform renaming of diagram. Try this. WORKING WITH DIAGRAMS AND ITS ELEMENTS To illustrate the usage of diagrams and its elements, we need to create a new diagram. We will use a Use Case Diagram for this (more of Use Case models to be covered in Lab 2). For now, follow the steps below: Under the Menu Bar, click File > New Diagram > UML Diagrams > Use Case Diagram to create an empty Use Case Diagram. Nor Samsiah Binti Sani 13

Use Case Toolbar Notice that the Use Case Diagram Toolbar will be attached to the diagram pane which includes all elements of a use case. Click the Actor symbol in the use case toolbar and click once again anywhere in the Diagram Pane. An Actor will be created. Notice that in the Various Auxiliary Pane, the Property Tab highlights the created Actor item. You can also modify the property of the Actor here. Rename the Actor name as Student. Nor Samsiah Binti Sani 14

Various Auxiliary Pane Property tab displaying highlighted element s properties to edit properties such as Name. Using the same methods when creating the actor above, try to produce a use case and associate it with the created actor. Detailed steps below: Create a new Use Case and name it Search for course module. Create an association and link the actor Student with use case Search for course module. You should get a diagram shown below: Actor Association Use Case A simple use case diagram. Now try to left click and drag the use case around and notice that the association will still preserve the relationship of both the actor and its use case. This allows for flexibility and modification in the design of the diagram. To delete an element, several ways are possible. Try any one below: Left click the use case Search for course module. Under Menu Toolbar, click Edit > Delete ; OR, Nor Samsiah Binti Sani 15

Left click the use case Search for course module. Then Press keyboard key Delete ; OR, Right click the use case Search for course module. Click on the Delete option. A dialog box will appear to ask for delete confirmation. If (AND ONLY IF) you want to disable deletion confirmation, tick the Remember my choice and don t ask again. As an exercise to familiarize yourself with VP-UML diagram activity, try to create a simple use case diagram as shown below: Use Case Diagram for a Student Exam Registration System Example Use Case Flow of Events: Student search for a module from the database. Student search for an examination from the database. Student registers for an examination, which needs to search for a specific examination. When student registers for an examination, the request of exam registration is processed and records updated into the database. Use Case Description Use Case Search for course module Search for exam Description Provide a simple search functionality of courses which will be displayed in table format. Provides a list of registered exams of the student to help Nor Samsiah Binti Sani 16

Register for exam the student register for one / many exams. A student can register for an exam. End of Lab 1. Nor Samsiah Binti Sani 17