SlideShare a Scribd company logo
1 of 17
Introduction to Rational Rose 98i Module 9: Component and Deployment Diagrams
Objectives:  Component and Deployment Diagrams ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Creating Packages
Package Stereotypes
Creating Components
Component Stereotypes
Setting the Language for a Component
Mapping Classes to Components
Component Diagram
Interfaces
Deployment Diagram
Connection Stereotypes
Processes
Exercise:  Creating Components
Exercise:  Mapping Classes to Components
Exercise:  Component Diagram
Exercise:  Deployment Diagram

More Related Content

More from Nguyen Tran

More from Nguyen Tran (20)

Se 06
Se 06Se 06
Se 06
 
12report
12report12report
12report
 
07state
07state07state
07state
 
06collaboration
06collaboration06collaboration
06collaboration
 
05sequence
05sequence05sequence
05sequence
 
04class
04class04class
04class
 
03usecase
03usecase03usecase
03usecase
 
02intro
02intro02intro
02intro
 
01about
01about01about
01about
 
Clear case
Clear caseClear case
Clear case
 
Business process excution language
Business process excution languageBusiness process excution language
Business process excution language
 
Vs doc man
Vs doc manVs doc man
Vs doc man
 
Cm mi
Cm miCm mi
Cm mi
 
Sql packager
Sql packagerSql packager
Sql packager
 
Record mydesktop
Record mydesktopRecord mydesktop
Record mydesktop
 
Rational suite&rational rose enterprise
Rational suite&rational rose enterpriseRational suite&rational rose enterprise
Rational suite&rational rose enterprise
 
Umodel 2009
Umodel 2009Umodel 2009
Umodel 2009
 
Rational composer method
Rational composer methodRational composer method
Rational composer method
 
Rational robot
Rational robotRational robot
Rational robot
 
Rational purify plus
Rational purify plusRational purify plus
Rational purify plus
 

09componentdeployment

Editor's Notes

  1. To create a package Click right on the “owning” package to make the pop up menu visible. Select the New:Package menu command. This will add a package called NewPackage to the Browser. While the new package is still selected, enter its name. Packages typically represent subsystems.
  2. To create a stereotype for a package Click right on the package in the Browser to make the pop up menu visible. Select the Open Specification menu command. Enter the stereotype in the Stereotype field. OR Select the arrow in the Stereotype field to make the drop down menu visible and select the desired stereotype. Click the OK button to close the Package Specification.
  3. To create a component using the Browser Click right on the Component View package (or any user defined package) to make the pop up menu visible. Select the New:Component menu command. This will add a class called NewComponent to the Browser. While the new component is still selected, enter its name.
  4. To create a stereotype for a component Click right on the component in the Browser to make the pop up menu visible. Select the Open Specification menu command. Enter the stereotype in the Stereotype field. OR Select the arrow in the Stereotype field to make the drop down menu visible and select the desired stereotype. Click the OK button to close the Component Specification.
  5. To assign a language to a component Click right on the component in the Browser to make the pop up menu visible. Select the Open Specification menu command. Click the arrow in the Language field to make the drop down menu visible. Select the desired language. Click the OK button to close the Component Specification.
  6. To assign a class to a component Click right on the component in the Browser to make the pop up menu visible. Select the Open Specification menu command. Select the Realizes tab Click right on the class to make the pop up menu visible. Select the Assign menu command. Click the OK button to close the Component Specification.
  7. To open the Main component diagram Double click on the Main component diagram in the Browser. To create a component diagram Click right on the “owning” package in the Browser (either the Component View package or a user defined package) to make the pop up menu visible. Select the New:Component Diagram menu command. This will add a diagram called NewDiagram to the Browser. While the new diagram is still selected, enter its name. To add components to a component diagram Double click on the diagram in the Browser to open the diagram. Click to select the component in the Browser. Drag the component onto the diagram. To create component relationships Click to select the Dependency icon on the toolbar. Click on the component playing the role of the client and drag the dependency arrow to the component playing the role of the supplier. The only relationship allowed between components is a dependency relationship. You read this diagram as: The Registration executable depends upon the Course Catalog System executable.
  8. To create an interface to a component Rose will automatically create the “lollypop” for any class that has a stereotype of Interface.
  9. To open the Deployment Diagram Double click on the deployment diagram in the Browser. To create a processor Click to select the processor icon on the toolbar. Click on the diagram to place the processor. While the processor is still selected, enter its name. To create a connection Click to select the Connection icon on the toolbar. Click on one processor and drag the connection line to the other processor The UML uses the term node, Rose uses the term Processor
  10. To create a stereotype for a connection Click right on the connection on the Deployment Diagram to make the pop up menu visible. Select the Open Specification menu command. Enter the stereotype in the Stereotype field. OR Select the arrow in the Stereotype field to make the drop down menu visible and select the desired stereotype. Click the OK button to close the Connection Specification.
  11. To create a process Click right on the processor on the Deployment Diagram to make the pop up menu visible. Select the Open Specification menu command. Select the Detail tab. Click right in the Processes field to make the pop up menu visible. Select the Insert menu command. This will insert a process called NewProcess. While the new process is still selected, enter its name. Click the OK button to close the Processor Specification. To make the process visible on the deployment diagram Click right on the processor on the Deployment Diagram to make the pop up menu visible. Select the Show Processes menu command.
  12. Hint: These components all have stereotypes.
  13. The ICourseCatalogSystem class should be mapped to the CourseCatalogSystem component.