Rational Rose: How To
Use Cases
- Right-click on the Use Case View package in the browser to make the shortcut menu visible.
- Select the New:Actor menu option. A new actor called New Class is placed in the browser.
- With the actor called New Class selected, enter the desired name of the actor
- If the documentation window is not visible, open the documentation window by selecting the Documentation menu choice from the View menu.
- Click to select the Actor in the browser.
- Position the cursor in the documentation window and enter the document
- Right-click on the Use Case View in the browser to make the shortcut menu visible.
- Select the New:Use Case menu option. A new unnamed use case is placed in the browser.
- With the use case selected, enter the desired name of the use case.
- How to create a use case brief description
- Click to select the use case in the browser.
- Position the cursor in the documentation window and enter the brief description for the use case. If the documentation window is not visible, select the View:Documentation menu to make the window visible.
- How to link flow of events documents to use cases
- Right-click on the use case in the browser to make the shortcut menu visible.
- Select the Specification menu option.
- Select the Files tab.
- Right-click to make the shortcut menu visible.
- Select the insert File menu option.
- Browse the appropriate directory and select the desired file.
- Click the Open Button.
- Click the Ok button to close the specification.
- How to create the main use case diagram
- Double-click on the Main diagram in the Use Case View in the browser to open the diagram.
- Click to select an actor in the browser and drag the actor onto the diagram.
- Repeat step 2 for each additional actor needed in the diagram.
- Click to select a use case in the browser and drag the use case into the diagram.
- Repeat step 4 for each additional use case needed in the diagram.
- How to create a communicate association between an actor and a use case
- Click to select the Association icon or the Unidirectional Association icon from the diagram toolbar. Note that is the Association icon is not present on the toolbar, it may be added by right-clicking on the toolbar, selecting the Customize menu choice from the shortcut menu, and adding the icon to the toolbar.
- Click on an actor initiating a communication and drag the association line to the desired use case
- How to add the communicates stereotype
- Double-click on the association line to make the specification visible.
- If this is the first time the stereotype is being used, enter Communicates in the Stereotype filed. If a Communicates stereotype has already been created, click the arrow in the stereotype field to make the drop-down menu visible and select Communicates.
- Click the Ok button to close the Specification.
- Right-click on the association line to make the shortcut menu visible.
- Select the Stereotype Label menu choice.
- Repeat the preceding steps for each additional association relationship
- How to create an include relationship between two use cases
- Click to select the Dependency icon from the toolbar.
- Click on the including use case and drag the Dependency icon to the included use case.
- Double-click on the dependency arrow to make the Specification visible.
- If this is the first time an include relationship is being created, enter Include in the Stereotype filed. If an Include stereotype has already been created, click the arrow in the Stereotype field to make the drop-down menu visible and select Uses.
- Click the Ok button to close the Specification.
- Right-click on the dependency arrow to make the shortcut menu visible.
- Select the Stereotype Label menu choice.
- How to create an extend relationship between two use cases
- Click to select the Dependency icon from the toolbar.
- Click on the use case containing the extended functionality and drag the Dependency icon to the base use case.
- Double-click on the dependency arrow to make the Specification visible.
- If this is the first time an extend relationship is being created, enter Extend in the Stereotype filed. If an Extend stereotype has already been created, click the arrow in the Stereotype field to make the drop-down menu visible and select Extends.
- Click the Ok button to close the Specification.
- Right-click on the dependency arrow to make the shortcut menu visible.
- Select the Stereotype Label menu.
Classes and Packages
- Right-click to select the Logical View in the browser.
- Select the New:Class menu choice. A class called New Class is placed in the browser.
- While the new class is still selected, enter the name of the class.
- How to create stereotypes for classes
- Right-click to select the class in the browser and make the shortcut menu visible.
- Select the Specification menu choice.
- Select the General tab.
- Enter the name of the stereotype.
- Click the Ok button to close the Specification.
- Click to select the class in the browser.
- Position the cursor in the documentation window and enter the documentation for the class.
- Right-click to select the Logical View in the browser.
- Select the New:Package menu choice.
- While the packe is still selected, enter the name of the package.
- How to relocate classes into packages
- Click to select the class in the browser.
- Drag the class to the desired package.
- Repeat the steps for each class that is to be relocated.
- How to add packages to the Main class diagram
- Double-click on the Main diagram in the browser to open the diagram.
- Click to select the package in the browser.
- Drag the package onto the diagram.
- Repeat the preceding steps for each package that is to be added to the diagram.
- How to create a package’s main class diagram
- Double-click on the package on a class diagram.
- Rose will open the package and create or display the Main class diagram for the package.
- Click to select a class in the browser and drag the class onto the diagram.
- Repeat step 3 for each additional class that is to be placed on the diagram.
- How to crate a view of participating classes
- Right-click on the use case in the browser to make the shortcut menu visible.
- Select the New:Class diagram menu choice.
- While the diagram is still selected, enter the name of the class diagram.
- Double click on the diagram in the browser to open the diagram.
- Click to select a class in the logical view of the browser and drag the class onto the diagram.
- Repeat step 5 for each additional class that is to be placed onto the diagram.
- How to set default visibility display
- Select the Tools:Options menu choice.
- Select the Diagram tab.
- Select the Show Visibility checkbox to set the default to show the visibility of all classes.
- How to set visibility for a selected class
- Right-click on the class in a class diagram to make the shortcut menu visible.
- Move the cursor to Options.
- Click to select or deselect the Show Visibility menu choice.
- How to add classes to a diagram using the query menu
- Double-click on the diagram in the browser to open the diagram.
- Select the Query:Add Classes menu choice.
- Select the desired package.
- Click to select the desired classes and click the >>>> button to add the classes to the diagram or click the All >> button to add all the classes to the diagram.
- How to create parameterized classes
- Click to select the Parameterized class icon from the toolbar. You may have to add this icon to the toolbar using the Customize option (by right-click the toolbar).
- Click on the class diagram to place the parameterized class.
- While the parameterized class is still selected, enter its name.
- Right-click to select the class in the Browser or on a class diagram.
- Select the Specification menu choice.
- Select the Detail tab.
- Right-click on the Formal Arguments field to make the pop-up menu visible.
- Select the Insert menu choice, which will insert a formal argument with a name of argname and a type of argtype.
- With the argname selected, enter the name of the formal argument.
- Click to select the argtype and enter the type of the formale argument.
- Repeat steps 7 through 10 for each argument.
- Click the OK button to close the Specification.
- How to create instantiated parameterized classes
- Click to select the class icon on the toolbar.
- Click on the class diagram to place the class.
- With the class still selected, select the Edit:Change Into:Instantiated Class menu choice.
- Right-click on the instantiated class to make the pop-up menu visible.
- Select the Specification menu choice.
- Select the Detail tab.
- Right-click on the Actual arguments field to make the pop-up menu visible.
- Select the Insert menu choice, which will add an argument with name = argname and type = argtype.
- With the argname still selected, enter the name of the argument.
- Click to select the argtype and blank it out.
- Repeat step 7 through 10 for each actual argument.
- Click the OK button to close the Specification.
- Click to select the Dependency icon from the toolbar.
- Draw a dependency relationship between the instantiated lass and the parameterized class.
- Add relationships to the instantiated class as needed.
- Interactions
- How to create a sequence diagram
- Right-click to select the use case in the browser and make the shortcut menu visible.
- Select the New:Sequence Diagram menu choice. An unnamed sequence diagram is added to the browser.
- With the new sequence diagram selected, enter the name of the sequence diagram.
- How to create objects and messages in sequence diagrams
- Double-click on the sequence diagram in the browser to open the diagram.
- Click to select the actor in the browser.
- Drag the actor onto the sequence diagram.
- Click to select the object icon from the toolbar.
- Click on the sequence diagram window to place the object.
- While the object is still selected, enter the name of the object.
- Repeat the preceding steps for each object and actor in the scenario.
- Click to select the object message icon from the toolbar.
- Click on the actor or object sending the message and drag the message line to the actor or object receiving the message.
- Double-click the message-line to open its specification, then enter the name of the message.
- Repeat steps 7 through 9 for each, message in the scenario.
- How to assign objects in a sequence diagram to classes
- Click to select the class in the browser.
- Drag the class onto the object in the sequence diagram. Rose will add the class name preceded by a : to the object name. It the object is unnamed, the name is set :class-name.
- How to create collaboration diagrams from sequence diagrams
- Double-click on the sequence diagram in the browser to open the diagram.
- Choose the Browse:Create Collaboration Diagram menu choice or press F5 key.
- Rearrange the objects and message on the diagram as needed.
- Relationships
How to create an association relationship
Click to select the association icon from the toolbar.
Click on one of the associated classes in a class diagram.
Drag the association line to the other associated class.
- How to create an aggregation relationship
- Select the aggregation icon from the toolbar.
- Click on the class playing the role of the "whole" in a class diagram and drag the aggregation line to the class playing the role of the "part".
- How to name relationships
- Click to select the relationship line on a class diagram.
- Enter the name of the relationship.
- Right-click on the relationship line near the class that it modifies to make the shortcut visible.
- Select the Role Name menu choice.
- Enter the name of the role.
- How to create multiplicity
- Double-click on the relationship line to make the Specification visible.
- Select the Detail tab for the role being modified.
- Enter the desired multiplicity.
- How to create a reflexive relationship
- Select the association or aggregation icon from the toolbar.
- Click on the class and drag the association or aggregation line outside the class
- Release the mouse button.
- Click and drag the association or aggregation line back to the class.
- Enter the role names and multiplicity of each end of the reflexive association to aggregation.
- How to create package relationships
- Select the dependency relationship icon from the toolbar.
- Click on the dependent package and drag the arrow to the package it depends upon.
- How to filtering relationships
- Double-click on the diagram in the browser to open the diagram.
- Select the Query:Filter Relationships menu choice.
- Click the Non button in the Type field to hide all relationships shown on the open diagram.
- Right-click at the end of the association or aggregation line to be made non-navigable to make the shortcut menu visible.
- Click to toggle the Navigation menu choice.
- How to set aggregation containment
- Right-click on the aggregation diamond to make the shortcut menu visible.
- Select the desired containment – By Value or By Reference.
- How to create dependency relationships
- Click to select the dependency relation icon on the toolbar.
- Click on the class playing the role of the client.
- Drag the dependency relationship line to the class playing the role of the supplier.
- Operations, Attributes, and Association Classes
- How to map messages to new operations
- Assign the objects to classes if the has not been done previously.
- Right-click on the message arrow to make the shortcut menu visible.
- Select the <new operation> menu choice. This will open the Operation Specification.
- Enter the name of the operation in the Operation Specification.
- Click the OK button to close the Operation Specification.
- Right-click on the message arrow to make the shortcut menu visible.
- Select the operation from the list of operations for the class.
- Right-click to select the class in the browser and make the pop-up menu visible.
- Select the New:Operation menu choice. This will create an operation called opname in the browser.
- With the new operation selected, enter the desired name.
- How to document operations
- Click the + next to the class in the browser to expand the class.
- Click to select the operation.
- Position the cursor in the documentation window and enter the documentation for the operation.
- Right-click to select the class in the browser and make the pop-up menu visible.
- Select the New:Attribute menu choice. This will create an attribute called name in the browser.
- With the new attribute selected, enter the desired name.
- How to document attributes
- Click the + next to the class in the browser to expand the class.
- Click to select the attribute.
- Position the cursor in the documentation window and enter the documentation for the attribute.
- How to display some attributes or operations
- Right-click to select the class on an open class diagram and make the shortcut menu visible.
- Select the edit Compartment menu choice.
- Click to select the attributes and operations to be displayed.
- Click the >>>> button.
- Click the OK button to close the Edit Compartment window.
- How to show all attributes and operations
- Right-click on the class in a diagram to make the shortcut menu visible.
- Select the Show All Attributes menu choice to display all the attributes for the class.
- Repeat step s and select the Show All operations Menu choice to display all the operations for the class.
- How to set attribute data types
- Right-click to select the class in the browser or on a class diagram and make the shortcut menu visible.
- Select the Specification menu choice.
- Select the Attributes tab.
- Attributes will have a data type set to type and an initial value set to initval. Click to select the type or initval and place in edit mode.
- Enter the desired data type or initial value.
- How to set operation signatures
- Right-click to select the class in the browser or on a class diagram and make the shortcut menu visible.
- Select the Specification menu choice.
- Select the Operations tab.
- Double-click on an operation to make the operation Specification visible.
- Enter the return class on the General tab.
- Select the Detail tab.
- Right-click on the Argument field to make the shortcut menu visible.
- Select the Insert menu choice. This will add an argument. Enter the name, data type, and default value for the argument.
- Click the OK button to close the Operation Specification then Class Specification.
- How to create association classes
- Click to select the class icon from the toolbar.
- Click on the diagram to place the class.
- With the class selected, enter the name of the class.
- Add the attributes and operations to the class.
- Click to select the Association Class icon from the toolbar.
- Click on the association class and drag the link attribute line to the association it modifies.
- Create any additional relationships for the association class.
- Inheritance
- How to create inheritance
- Open the class diagram that will display the inheritance hierarchy.
- Click to select the class icon from the toolbar and click on the open class diagram to draw the class.
- With the class still selected, enter the name of the class.
- Click to select the Generalization icon on the toolbar.
- Click on a subclass and drag the generalization line to the superclass.
- Repeat step 5 for each additional subclass.
- How to relocate attributes and operations to superclasses
- Click the + sign next to one subclass in the browser to expand the class.
- Select the attribute or operation to be relocated.
- Drag the attribute or operation to the superclass.
- Delete the attribute or operation from all other subclasses
- Repeat step 2 through 4 for each additional attribute or operation to be relocated.
VII. States and Dynamic Behavior
- How to create statechart diagrams
- Right-click to select the class in the browser and make the shortcut menu visible.
- Select the State Diagram menu choice. This will automatically create and open the diagram.
- To open the diagram at another time, click the + to expand the class in the browser, and double-click on its state diagram in the browser.
- Click to select the state icon from the toolbar.
- Click to place the state on the state diagram.
- With the state still selected, enter the name of the state.
- How to create state transitions
- Click to select the state transition icon from the toolbar.
- Click to select the originating state on the state diagram.
- Drag the state transition to the successor state.
- If the state transition is named transition, enter the name while the state transition arrow is still selected.
- How to create start state
- Click to select the start icon from the toolbar.
- Click on the state diagram to draw the start icon.
- Click to select the state transition icon from the toolbar.
- Click on the start icon and drag the arrow to the desired state.
- How to create stop states
- Select the stop icon from the toolbar.
- Click on the state diagram to draw the stop icon.
- Select the state transition icon from the toolbar.
- Click on the state and drag the arrow to the stop icon.
- How to add state transition details
- Right-click on the state transition arrow to make the shortcut menu visible.
- Select the Specification menu choice.
- Select the Detail tab.
- Enter the action, guard, and/or the event to be sent.
- How to create entry actions, exit actions, and activities
- Right-click on the state to make the shortcut menu visible.
- Select the Specification menu choice.
- Select the detail tab.
- Right-click on the Action field to make the shortcut menu visible.
- Select the Insert menu choice. This will create an action called entry.
- Double-click on the entry to make the Action Specification visible.
- Select the type of action – action or send event.
- Enter the action or send event information.
- Select when the action should occur: on entry, on exit, entry until exit, or upon event.
- Click the OK button to close the Action Specification.
- Click the OK button to close the State Specification.
- System Architecture
How to make a package global
Right-click to select the package on a class diagram.
Select the Specification menu choice.
Select the Detail tab.
Click the select the global checkbox.
Click the OK button to close the specification.
- How to create component view packages
- Right-click to select the Component View package on the browser and make the shortcut menu visible.
- Select the New:Package menu choice. This will add an item called New Package to the browser.
- With the NewPakage still selected, enter the name of the package.
- How to create the main component diagram
- Double-click on the main Diagram under the Component View pcakge on the browser to open the diagram.
- Click to select a package and drag the package onto the diagram.
- Repeat step 2 for each additional packages
- Dependency relationships are added by selecting the dependency icon from the toolbar, clicking on the package representing the client, and dragging the arrow to the package representing the supplier.
- Open a component diagram.
- Click to select the Component icon on the toolbar.
- Click on the diagram to place the component. This will also add the component to the Browser.
- While the component is still selected, enter the name of the component.
- How to map classes to components
- Right-click to select the component on the browser and make the shortcut menu visible.
- Select the Specification menu choice.
- Select the Realizes tab.
- Right-click to select the class and make the shortcut menu visible.
- Select the Assign menu choice.
- Click the OK button to close the Specification.
- How to create the deployment diagram
- Double-click on the Deployment Diagram on the browser.
- To create a node, click to select the Processor icon, and click on the diagram to place the node.
- With the node still selected, enter the name of the node.
- To create a connection between nodes, click to select the connection icon from the toolbar, click on one node on the deployment diagram, and drag the connection to the other node.