Download presentation
Presentation is loading. Please wait.
Published byPeregrine May Modified over 9 years ago
1
Identifying classes, Packages and drawing class Diagrams, Object Diagrams and composite structure diagrams Week 07 1
2
Deployment Diagram Shows the physical architecture of a computer- based system. It can show – the computers and devices, – their connections with one another – the software that sits on each machine
3
Deployment diagram UML deployment diagramUML deployment diagram depicts a static view of the run-time configuration of hardware nodes and the software components that run on those nodes. Deployment diagrams show the hardware for your system, the software that is installed on that hardware, and the middleware used to connect the disparate machines to one another.
4
Used for distributed systems only. The main hardware item is a node, a generic name for any kind of computing resource. Node is specialized by: device execution environment UML node icon
6
Deployment diagram
8
artifact artifact is a classifier that represents some physical entity, a piece of information that is used or is produced by a software development process, or by deployment and operation of a system. Artifact is a source of a deployment to a node.classifierdeploymentnode Some real life examples of artifacts are: text document source file script binary executable file archive file table in a database
9
Associations between Artifacts Artifacts can be involved in associations to other artifacts, e.g. composition associations. For instance, a deployment descriptor artifact for a component may be contained within the artifact that manifests that component.associationscompositionmanifests Application book-club.ear artifact contains EJB user-service.jar artifact and deployment descriptor.
10
Dependency between artifacts is notated in the same way as general dependency,dependency i.e. as a general dashed line with an open arrow head directed from client artifact to supplier artifact. The book-club.war artifact depends on web-tools- lib.jar artifact.
12
Object diagram UML 2 Object diagrams (instance diagrams), are useful for exploring real world examples of objects and the relationships between them. It shows instances instead of classes. They are useful for explaining small pieces with complicated relationships, especially recursive relationships. UML 2 Object diagrams
13
Object diagram
14
package UML package helps to organize and arrange model elements and diagrams into logical groups, through which you can manage a chunk of project data together. UML You can also use packages to present different views of the system's architecture.
15
Package diagram visualizes packages and depicts the – Dependency – import – access – generalization – realization and merge relationships between them.
16
The members of the package may be shown within the boundaries of the package. In this case the name of the package should be placed on the tab. Package org.hibernate contains SessionFactory and Session
17
Members of the package may be shown outside of the package by branching lines from the package to the members. A plus sign (+) within a circle is drawn at the end attached to the namespace (package). This notation for packages is semantically equivalent to composition (which is shown using solid diamond.)composition
18
Package org.hibernate contains interfaces SessionFactory and Session
19
visibility Owned and imported elements may have a visibility that determines whether they are available outside the package. If an element that is owned by a package has visibility, it could be only public or private visibility. Protected or package visibility is not allowed. The visibility of a package element may be indicated by preceding the name of the element by a visibility symbol ("+" for public and "-" for private).
20
visibility All elements of Library Domain package are public except for Account
21
Package can be used as a template for other packages. Note, that [UML 2.4.1 Specification] inconsistently calls it both package template and template package.template[UML 2.4.1 Specification]
22
Package merge A package merge is a directed relationship between two packages that indicates that content of one package is extended by the contents of another package.directed relationship Package merge is similar to generalization in the sense that the source element conceptually adds the characteristics of the target element to its own characteristics resulting in an element that combines the characteristics of both.generalization
23
A keyword is shown near the dashed arrow to identify which kind of package import is intended. The predefined keywords are «import» for a public package import, and «access» for a private package import. By default, the value of visibility is public Private import of Presentation package and public import of Domain package
24
ML Kernel package merges Constructs package which imports Primitive Types.
26
Package diagram UML 2 Package diagrams simplify complex class diagrams, it can group classes into packages. A package is a collection of logically related UML elements. Packages are depicted as file folders and can be used on any of the UML diagrams. UML 2 Package diagrams
27
Package diagram
28
Composite structure diagram UML 2 Composite structure diagrams used to explore run-time instances of interconnected instances collaborating over communications links. It shows the internal structure (including parts and connectors) of a structured classifier or collaboration. UML 2 Composite structure diagrams
29
Composite structure diagram
30
END 30
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.