Unit 5-Modeling Component Design
Unit 5-Modeling Component Design
Deployment Diagram
Implementation Diagram
It show the implementation phase of system
development such as the source code structure
and the run time implementation structure
It is high level diagram also called as physical
diagram
Two types:-
Component diagram
Deployment diagram
Component Diagram
It model the physical components such as
executables, libraries, tables, files and
documents.
A Component represents the physical
packaging of logical elements, such as classes,
interfaces, and collaborations.
Logical modeling help to visualize, specify, and
document the collaborations. Physical modeling
is used to construct the executable system.
Component Diagram
In the UML, all these physical things are modeled as
components. A component is a physical thing that
conforms to and realizes a set of interfaces, thus
interfaces bridge logical and physical models.
You also can have file components that represent the
source code files of an application or document files
that represent, for example, the user interface files
such as HTML or JSP files.
Finally, you can use components to represent even
the database tables of a system as well!
Elements
Component: The objects interacting with each
other in the system. Depicted by a rectangle
with the name of the object in it, preceded by a
colon and underlined.
Interface
It is a collection of operations that specify a
service that is provided by or requested from a
class or component.
<<Interface>>
Name
methods
Port
A Port is a specific window into an encapsulated
component accepting messages to and from the
component conforming to specified interface.
Ports can support unidirectional communication or
bi-directional communication.
Relationship
Relation/Association: Similar to the
relation/association used in class diagrams
(dependency) (Realization)
Uses of Component diagram
Modeling Source Code: In application, we organize the
files into larger groups. Sometimes we update some files or
create new version of file. Component diagrams help to
visualize these source code files and their relationships.
Modeling Executable releases: Releasing a simple
application is easy but for complex technologies we need
main executable, libraries, stored procedures. Component
diagrams help to visualize, specify, construct and
document the configuration of executable releases,
consisting the deployment components that form each
release and the relationships among those components.
Modeling physical databases: Mapping a logical
database schema to a relational database is not so simple.
In presence of inheritance decisions should be made
about how to map classes to tables.
Define a separate table for each class
Modem
Connection:- similar to the relation/association
used in class diagrams to define the
interconnection between nodes.