Week 8
Week 8
Language)
•Component Diagram
•Deployment Diagram
Component diagrams
– Component diagrams provide a physical view of the
current model.
– They show the organization and dependencies among
software components, including source code, binary
code, and executable components.
– You can create one or more component diagrams to
depict components and packages or to represent the
contents of each component package.
2
Component Elements
• Component
– Interacting objects within system
• Class/Interface/Object
• Relation/Association
3
Sample Component Diagram
Component
Interface
Dependency
4
Component
• Development-time or run-time physical object
implementing the system.
5
Interface
• A formally specified and documented
boundary between two components.
6
Dependency
• The components pointed to depend on the
physical objects pointed from.
7
Component Diagram Example
8
Component
Diagram:
9
Example of component diagram:
10
Component Diagram
11
Component Diagram
12
The deployment view
• The deployment view shows the mapping of processes to
hardware.
• Represents physical relationships among software and
hardware components as realized in running system
• Nodes represent computational elements (i.e. processor,
server, etc.)
• This type of diagram is most useful in a distributed
architecture environment where you might have
applications
• and servers at different locations.
• This view contains only one diagram – the deployment
diagram.
13
Sample Deployment Diagram
Connection to
some other
hardware
Hardware
Node
Software
Component
14
Example
15
Example
16
Deployment diagram
17
Example: Deployment diagram shows the relationships
among software and hardware components involved in
real estate transactions.
19
Identify Actors
• Tutors
• Course Administrators
• Students
• Course Administrator is main actor
20
Use Case
• Manage courses
– View courses
– Manage topics for a course
– Manage course information
• Manage course assignments
– View course calendar
– View tutors
– Manage tutor information
– Assign courses to tutors
21
Use Case
22
Collaboration Diagram
23
Component Diagram
24