Rational Real Time Orientation 03
-
Upload
quispe-castaneda-ricardo -
Category
Documents
-
view
240 -
download
0
Transcript of Rational Real Time Orientation 03
-
8/6/2019 Rational Real Time Orientation 03
1/18
1
Orientation Manual- Rational Rose Real Time 2003 Enterprise
Edition
Importing/Opening an existing Rational Rose Enterprise UML Model
1. Click Open on the Standard Toolbar.
2. Locate the existingUML file.3. Click Open.
NOTE: The Has-A relations will be lost. There will be ERROR messages,but
thats fine. Just keep clicking OK until the diagram opens.
-
8/6/2019 Rational Real Time Orientation 03
2/18
2
Creating a New Model
When starting Rational Rose Real Time, the Create New Model dialog box appears.
1. Click Open.
-
8/6/2019 Rational Real Time Orientation 03
3/18
3
Rational Rose Real Time Graphical User Interface
Creating a Class
1. In the Model View browser, right-clickLogical View, and select New > Class.Or . . .
In the toolbox for the Class Diagram, select the Class icon, and click on theClass Diagram: Logical View / Main window.
2. Rename the class HomeWorkand pressENTER.On the Model View tab in the browser, the new class HomeWork appears in the
Logical View folder.
3. Create another class using the steps above and name it Grades.
Documentation
WindowBrowser
Window
Diagram
Window
Diagram
Toolbar
-
8/6/2019 Rational Real Time Orientation 03
4/18
4
Adding Documentation to Each Class Class Specifications
1. You may add documentation to any class by right clicking on any class in the Class
Diagram Window and clicking on Open Specification.2. Place the cursor in the documentation area and enter the text you want.
Creating a CapsuleCapsules are special forms of classes with some supporting mechanisms that enforce a
higher degree of encapsulation and abstraction than classes. Capsules are very useful forbuilding concurrent, event-driven systems, and are an important element in Rational Rose
Real Time.
1. In the Model View browser, right-clickLogical View, and select New > Capsule.Or . . .
In the toolbox for the Class Diagram, select the Capsule icon, and click on the
Class Diagram: Logical View / Main window.
2. Rename the capsule Studentand press ENTER.On the Model View tab in the browser, the new capsule Student appears in the
Logical View folder.
-
8/6/2019 Rational Real Time Orientation 03
5/18
5
Adding Documentation to Each Capsule Capsule Specifications
1. You may add documentation to any capsule by right clicking on any capsule in
the Class Diagram Window and clicking on Open Specification.
2. Place the cursor in the documentation area and enter the text you want.
-
8/6/2019 Rational Real Time Orientation 03
6/18
6
Print Class Diagram
1. Click on theprinticon in the standard toolbar.
Creating relations
The following figure points out some of the relationships a diagram may have in the toolbar. For this example, we will do an Aggregation Relationship assuming that the
Teacher Capsule HAS-A Student Capsule.
1. In the toolbox for the Class Diagram, select the Aggregation icon, and thenselect the Teacher Capsule in the Class Diagram: Logical View / Main
window.2. Drag the Aggregation line to the Student Capsule.
Naming the Relationship
1. Double Click on the Aggregation line and enter the name Has_A.
-
8/6/2019 Rational Real Time Orientation 03
7/18
7
To create a new collaboration diagram
1. Select any class or capsule in the Logical View.2. Right-click on the element that youve selected.3. SelectNew -> Collaboration Diagram.4. Enter the name for the Collaboration Diagram.5. Double click on the new Collaboration Diagram within the BrowserWindow.
Dependency
Generalization
Aggregation
-
8/6/2019 Rational Real Time Orientation 03
8/18
8
Adding Documentation to any Capsule within the Collaboration Diagram
1. You may add documentation to any capsule in this diagram by right clicking onany capsule and clicking on Open Specification.
2. Place the cursor in the documentation area and enter the text you want.
-
8/6/2019 Rational Real Time Orientation 03
9/18
9
Selecting Existing Capsules for the Collaboration Diagram
1. In the toolbox for the Collaboration Diagram, select the Capsule icon, and click on
the Collaboration Diagram Window.2. A dialog window appears. This dialog box allows you to select from the existing
capsules defined in the Class Diagram: Logical View / Main Window, selectStudent.
3. Repeat the steps above and then select Teacher.
.
Creating message links for Capsules1. In the toolbox for the Class Diagram, select the Link icon (message), and then
select the Teacher Capsule in the Class Diagram: Logical View / Mainwindow.
2. Drag the Link line to the Teacher Capsule in the class diagram.
-
8/6/2019 Rational Real Time Orientation 03
10/18
10
3. Name the link (message) by dragging clicking on the Constraint icon from thetoolbar and then clicking on the Collaboration Diagram.
4. Name the message Give_Exam.5. Drag and Drop the message adjacent to the Teacher Capsule since the teacher
is sending a message to the Student. i.e. Teacher gives exam to student. If thestudent sends a message to the teacher, then the message would be adjacent to the
Student Capsule.
-
8/6/2019 Rational Real Time Orientation 03
11/18
11
Print Collaboration Diagram
1. Click on theprinticon in the standard toolbar.
-
8/6/2019 Rational Real Time Orientation 03
12/18
12
Adding a State to a Capsule
1. Click on the plus sign of the Student Capsule under the Logical ViewDirectorywithin the Browser Window to expand the diagrams.
2. Double click on the State Diagram.3. In the toolbox, click the State icon and then click on the State Diagram.4. Name the State, WaitForSignal.5. Create another state called TurnOffLight.
The state diagram contains an initial point, , and an initial state calledWaitForSignal. An initial point is a special point, which explicitly shows the beginning
of the state machine. You connect the initial point to a start state (in this case,WaitForSignal). Where the start state will be the first active state in the objects state
machine. The transition from the initial point to the start state, the initial transition, is thefirst transition taken before any other transition. Only one initial state is allowed in eachstate diagram. Only one outgoing transition can exist from the initial point.
-
8/6/2019 Rational Real Time Orientation 03
13/18
13
There can be several incoming transitions to the initial state. In this case the initial stateacts like a junction point which forces the behavior back through the initial transition. If
the initial transition is used to completely initialize an object, then any incomingtransition to the initial state will effectively reset the behavior of an object without having
to destroy then re-create it.
Adding Documentation to any State within the State Diagram
1. You may add documentation to any state in this diagram by right clicking on anystate clicking on Open Specification.
2. Place the cursor in the documentation area and enter the text you want.Defining an Entry Action
1. Right click on the WaitForSignal State and clickOpen Specification.2. Click on the Entry Actions Tab and place the cursor within in the Code Text
Box and enter Signal.3. Do the same for the TurnOFFLight State.
-
8/6/2019 Rational Real Time Orientation 03
14/18
14
Drawing a Transition
A transition is a relationship between two states, a source state and a destination state. Itspecifies that when an object in the source state receives a specified event and certain
conditions are met, the behavior moves from the source state to the destination state.
1. In the toolbox for the State Diagram dialog box, clickState Transition icon.
2. Click and hold the left mouse button on the Initial Point in the state diagram.
3. Drag the Transition line to the top of the WaitForSignal state.4. Draw a transition from the WaitForSignal state, to the TurnOffLight state as well.
5. Name the transitionTurn_Off and then press ENTER.
Defining the Actions for each State
Note: Notes are used to specify actions for a State.
1. Click on the Note icon and then click under the TurnOFFLight State in the State
Diagram.2. Double Click within the note and type in Power Level Drops.3. Link the Note to the TurnOffLight State by clicking on the Anchor Note icon.
-
8/6/2019 Rational Real Time Orientation 03
15/18
15
1. Click on the Note and drag the line to the TurnoffLight State.
Print State Diagram
1. Click on theprinticon in the standard toolbar.
Generate Report
Note: Rational Rose Real Time can automatically generate a documented logical
view report of a UML design.
1. Select theReport menufrom the main menu.2. SelectDocumentation Report.
3. Click on the include documentation checkbox.
-
8/6/2019 Rational Real Time Orientation 03
16/18
16
Printing the Documentation
1. Click on the File option on the menu.2. Select the Print option from it.
-
8/6/2019 Rational Real Time Orientation 03
17/18
17
3. In the Print range box, select the radio button for Selected specifications andthen click on the Specification options button.
-
8/6/2019 Rational Real Time Orientation 03
18/18
18
4. In the Class specifications box, select the radio button for the Entire structure .5. In the Options box, select the check box for State specifications .
6. ClickOK button to print the entire documentation.