Presentation is loading. Please wait.

Presentation is loading. Please wait.

Component, Deployment and Package Diagrams CSIS3600.

Similar presentations


Presentation on theme: "Component, Deployment and Package Diagrams CSIS3600."— Presentation transcript:

1 Component, Deployment and Package Diagrams CSIS3600

2 Partitions and Collaborations Creating “subsystems” or larger units Grouping units that collaborate May have collaboration among units or partitions The more messages or contracts between objects, the more likely they are in the same partition PowerPoint Presentation for Dennis, Wixom & Tegardem Systems Analysis and Design Copyright 2001 © John Wiley & Sons, Inc. All rights reserved.

3 Package A general construct that groups units together Used to reduce complexity of models A package diagram shows packages only PowerPoint Presentation for Dennis, Wixom & Tegardem Systems Analysis and Design Copyright 2001 © John Wiley & Sons, Inc. All rights reserved.

4 Syntax for Package Diagram A PACKAGEPackage A DEPENDENCY RELATIONSHIP PowerPoint Presentation for Dennis, Wixom & Tegardem Systems Analysis and Design Copyright 2001 © John Wiley & Sons, Inc. All rights reserved.

5 Modification Dependency Indicates that a change in one package could cause a change to be required in another package. Example: –A change in one method will cause the interface for all objects of this class to change. Therefore, all classes that have objects that send messages to the instances of the modified class could have to be modified. PowerPoint Presentation for Dennis, Wixom & Tegardem Systems Analysis and Design Copyright 2001 © John Wiley & Sons, Inc. All rights reserved.

6 Package Diagram of Dependency Relationships Among Layers PowerPoint Presentation for Dennis, Wixom & Tegardem Systems Analysis and Design Copyright 2001 © John Wiley & Sons, Inc. All rights reserved.

7 Package Diagram of Appointment System PowerPoint Presentation for Dennis, Wixom & Tegardem Systems Analysis and Design Copyright 2001 © John Wiley & Sons, Inc. All rights reserved.

8 Steps for Identifying Packages and Building Package Diagrams Set the context Cluster classes together based on shared relationships Model clustered classes as a package Identify dependency relationships among packages Place dependency relationships between packages PowerPoint Presentation for Dennis, Wixom & Tegardem Systems Analysis and Design Copyright 2001 © John Wiley & Sons, Inc. All rights reserved.

9 Package Diagram of the PD Layer for the Appointment System PowerPoint Presentation for Dennis, Wixom & Tegardem Systems Analysis and Design Copyright 2001 © John Wiley & Sons, Inc. All rights reserved.

10 PowerPoint Presentation for Dennis, Wixom & Tegardem Systems Analysis and Design Copyright 2001 © John Wiley & Sons, Inc. All rights reserved.

11 Component Diagram A component diagram shows the software components or modules and their dependencies. Component Diagram for Class Registration

12 Symbols of the Component Diagram Rectangle with two smaller protruding rectangles represents a component. Components are named. Lollipop (line connected to a small circle) represents link to an interface. Dashed Arrow represents dependency from source to target.

13 Rules of the Component Diagram Components group classes into logical units of work. These components represent source files, executable files, dynamic link libraries, interfaces, etc.

14 Component Diagram Based on Client Server Model (Non-connected component)

15 Components and Technical Design Component Diagram illustrates the evolving technology solution Loosely defined components are software modules The component diagram models the software component dependencies for source code, binary code and executable components

16 Deployment Diagram Deployment diagrams are used to model physical processors and devices and the components that reside on those devices Devices on the deployment diagram are drawn as rectangles Components can then be placed inside the deployment diagram

17 Deployment Diagram Example Reserve Seating UI Node 1: Client Workstations Reserve Seating Data Layer Node 2: Database Server Reserve Seating Business Layer Node 2: Application Server

18 Additional UML Resources IBM – Developer Works –http://www-106.ibm.com/developerworks/http://www-106.ibm.com/developerworks/ Search for UML (they have tutorials on sequence diagrams, activity diagrams, etc.) Sequence diagrams http://www-106.ibm.com/developerworks/library/j-jmod0508/index.html Activity diagrams http://www-106.ibm.com/developerworks/library/tip-drawuml/ UML Workbook http://www-106.ibm.com/developerworks/java/library/j-jmodcol.html Rational’s UML Resources http://www.rational.com/uml/gstart/online.jsp Listing of some UML tutorials http://www.find.com.au/tutorials/programming/uml/

19 Quote of the Week


Download ppt "Component, Deployment and Package Diagrams CSIS3600."

Similar presentations


Ads by Google