UNB Faculty of Computer Science                                                 CS3013 Software Engineering II

Lab 1  week of January 22, 2001 to January 26, 2001                                              Lab room ITD414

 

Lab times:  Monday, 3:30 to 5:00, Tuesday, 3:30 to 5:00,

                  Wednesday, 3:30 to 5:00, Thursday, 7:30 to 9:00 p.m.

 

Instructions

 

In this lab, you will practice using Rational Rose 2000 Enterprise Edition to create UML diagrams and specifications.

 

There are seven UML diagrams attached to this lab handout.  You will learn to recreate them in this lab.

 

1.  Use case diagram

Draw the Main use case diagram inside Use Case View.

 

2.  Class diagram

Draw the Main class diagram inside Logical View.

 

3.  Sequence diagram

Draw a new sequence diagram named "Course Registration" inside Logical View.

 

4.  Statechart diagram

Draw a new statechart diagram named "Course Section State" inside the CourseSection class.

 

5.  Activity diagram

Draw a new activity diagram named "Course Work Flow" inside Logical View.

 

6.  Component diagram

Draw the Main component diagram inside Component View.

 

7.  Deployment diagram

Draw the Deployment Diagram.

Before you leave the lab, you need to show the lab instructor all the diagrams you have created, and submit a floppy disk containing the saved UML model with your name, student number, course name and instructor’s name on the disk.  You should name the UML model using the following convention:

                        LastnameFirstnameLab1.mdl

You can get help from the lab instructor anytime during the lab.  That is, you don’t have to figure out how to create the diagrams all by yourself.

The following are some basic terms and instructions on how to use Rational Rose.

·         Left pane: Browser window

·         Right pane: Work area to draw diagrams

·         To select an item, left-click on the item.

·         To create a new item

    1. In browser: Right-click on the item (e.g. Use Case view) under which the new item will be created -> choose New -> choose the item you want to create.
    2. In a diagram: Drag and drop the corresponding icon from the tool bar to the diagram.
    1. Use the default "Main" diagram under each view, or create a new diagram.
    2. To put an existing item to the diagram, drag and drop the item from the browser to the diagram.
    3. To put a new item in the diagram, create the item in the diagram using the tool bar.
    1. right-click the item, then choose specification, or
    2. double left-click on the item.

Left-click on Edit in the menu bar -> choose Delete from Model

1.  Working on the use case diagram

 

2.  Working on the class diagram

    1. right-click on the class -> choose New Attribute or New Operation -> enter name, or
    2. open the class’ Specification -> choose Operations or Attributes -> right-click on blank space in the window -> choose Insert -> enter the name of the attribute or operation

 

3.  Working on the sequence diagram

4.  Working on the statechart diagram

 

5.  Working on the activity diagram

6.  Working on the component diagram

7.  Working on the deployment diagram