Software Engg Week 10 Class-component-Deployement
Software Engg Week 10 Class-component-Deployement
Lecture
What is UML?
– Activity diagrams
■ show how systems behave internally
■ All objects that exhibit same data and behavior can be formed into a
class.
■ Class are usually nouns in requirement document.
Main components of class
■ Class
■ Attributes
■ Operations
What is Class Diagram
Fig 1 Fig 2
Provided and Required
Interface
Interfaces in component diagrams show how components are wired together and interact with each
other.
Required interface is represented with a semi-circle and a solid line.
Provided interface is represented with a circle and solid line.
This shows that one component is providing the service that the other is requiring.
PORT DEPENDENCIES
Port is represented by the small square at the you can just as well use a dependency arrow to
end of a required interface or provided show the relationship between two
interface components. If you don’t want to use ball and
socket join
It is used when the component delegates the
interfaces to an internal class
How to draw
Step 1: figure out the purpose of the diagram and identify the artifacts such as the files, documents
etc. in your system or application that you need to represent in your diagram.
Step 2: As you figure out the relationships between the elements you identified earlier, create a
mental layout of your component diagram
Step 3: As you draw the diagram, add components first, grouping them within other components
as you see fit
Step 4: Next step is to add other elements such as interfaces, classes, objects, dependencies etc. to
your component diagram and complete it.
Step 5: You can attach notes on different parts of your component diagram to clarify certain details
to others
Component Diagram of
ATM system
Component Diagram of
Online Shopping
Deployment
Diagram
Deployment Diagram
A deployment diagram is a UML diagram type that shows the execution architecture of a system,
including nodes such as hardware or software execution environments, and the middleware
connecting them.
Deployment diagrams are typically used to visualize the physical hardware and software of a
system.
Using it you can understand how the system will be physically deployed on the hardware.
Components of Deployment
Diagram
Node: Artifacts:
A node, is a physical entity that executes Artifacts are concrete elements that are caused
one or more components, subsystems or by a development process.
executables.
Examples of artifacts are libraries, archives,
A node could be a hardware or software configuration files, executable files etc.
element.
Components of Deployment
Diagram
Device: Communication Association
A device is a node that is used to represent a This is represented by a solid line between two
physical computational resource in a system. An nodes. It shows the path of communication
example of a device is an application server. between nodes.
How to draw Deployment
Diagram
Step 1: Identify the nodes and devices within the system you’ll be visualizing with the diagram.
Step 2: Figure out the relationships between the nodes and devices. Once you know how they are
connected, proceed to add the communication associations to the diagram.
Step 3: Identify what other elements like components, active objects you need to add to complete
the diagram.
Step 4: Add dependencies between components and objects as required.
Deployment Diagram of
ATM