SlideShare ist ein Scribd-Unternehmen logo
1 von 33
UML REFERENCE
WITH ARCHITECTURE CONCEPTS
SUBMITTED BY : MOHAMED ZAKARYA
PACKAGE DIAGRAM
AGENDA
• What is A Package ?
• Package Notation
• Package Stereotype
• Package Visibility
• Relation Among Packages
• Dependency stereotypes ( Import & Access)
• Merging Package
• Use Case Package
• Package Architecture Concepts
• Exam Sample Questions ( OMG-OCUP2-FOUND100 )
PACKAGE DIAGRAM
WHAT IS A PACKAGE ?
Package
Package is
A general-purpose mechanism for organizing elements into groups
[ Package provide Namespace ]
Package Container For
any of the logical model elements such as
Use Case diagrams,
Sequence diagrams,
Class diagrams,
and even other packages.
PACKAGE NOTATION
Package
Graphically
Package is rendered as a tabbed folder
Package Content
can be drawn
inside the package
OR outside the package attached by a line
PACKAGE STEREOTYPE
Package
PACKAGE VISIBILITY
Package
Elements in a package may have public or private visibility
+ public
- Private
Visibility Visibility description
Public Elements within package are accessible outside the package
Private Elements available only to other elements inside the package
RELATION AMONG PACKAGES
Package
dependency relationship
• Two packages one depend on correct occurrence of the other
• means that at least one class in a package has to communicate with at least
one class in the other package
• Eg : relation between FishPackage , WaterPackage
Generalization relationship
• Parent-child relationship
• means that at least one class in a package
has to inherit with at least one class
in the other package
• Eg : relation between FishPackage , AnimalPackage
DEPENDENCY STEREOTYPES ( IMPORT & ACCESS)
Package
Package Import
• import can be a public import Or private import with public as the default
• Public import use <<import>> stereotype
• Private import use <<access>> stereotype
A public import <<import>>
means imported elements have public visibility inside the importing
namespace;
A private import <<access>>
means imported elements have private visibility inside the importing
namespace.
.
DEPENDENCY STEREOTYPES ( IMPORT & ACCESS)
Package
If Package X import receiving ,,
it will see purchasing ( public import ) – include in its runtime
If Package Y import shipping ,,
it won’t see receiving ( private import - access ) – access only means not include in its runtime
MERGING PACKAGE
Package
Mechanism to merge the content of package
When package merges another package , any class of the same type and name
automatically extends ( OR has a generalization relationship) to the original one
Notes :
• Private members of a package aren't merged with anything.
• Subpackages within the merged package are added to the merging
package if they don't already exist.
• If a subpackage with the same name already exists in the merging package,
another merge is started between the two subpackages.
MERGING PACKAGE - SAMPLE
Package
MERGING PACKAGE – SAMPLE RESULT
Package
Result After Merging
USE CASE PACKAGE
Package
Use case packages
• organize the functional behavior of a system during analysis
• provide understandable terms for team members outside analysis team
Managers
can depend on use case package
to discuss project at appropriate level of details without getting down
into details
Tracking use case packages means tracking customer values
USE CASE PACKAGE - SAMPLE
Package
PACKAGE ARCHITECTURE CONCEPTS
Decomposition Uses Generalization Layered
Package
PACKAGE – DECOMPOSITION STYLE
Package
 Architect tend to attach a problem by use of divide and conquer
technique ( divide complex problem to smaller ones )
 Show the structure of modules and submodules
 divide responsibilities into manageable pieces (implementation units)
 Code organization into modules and show how system responsibilities
Are partitioned across them
 Decomposition defined modules that may appear in other styles like
uses, generalization, layered, other module based views
 Usually decomposition is first step architect start with to model their
system (First step towards details architecture)
PACKAGE – DECOMPOSITION STYLE DESIGN CRITERIA
Module
Decomposition
Build versus buy decisions
Some modules may be bought from market place, or reuse of old
projects or obtained as open source.
Achievement of certain quality attributes
For example, to support Modifiability:
 Information hiding design principle will reduce side effects.
 Limit global impact of local design changes.
 Eg. Remote control with TV or Air Conditioner
Product line implementation
 make products of product family, make some sort of separation
 Separate common modules from variable modules that differ
across products
Team Allocation
 make responsibilities done in parallel, separate modules that can be
allocated to different team should be defined
 Skills of development team may change decomposition,
PACKAGE – DECOMPOSITION STYLE USAGE
Module
Decomposition
Support the learning
process about a system
for newcomers to the
project
input for the work
assignment view of a
system
Show effects of change in
addition to uses style
PACKAGE – DECOMPOSITION STYLE IN PRACTICE
Module
Decomposition
UML Diagram List Catalog
PACKAGE – USES STYLE
Module
Uses
 The uses style shows how modules depend on each other
 helpful for planning because it helps define subsets and increments of
the system being developed
 module uses another module if its correctness depends on the
correctness of the other
 Goes one step further to reveal which modules use which other
modules. This style tells developers what other modules must exist for
their portion of the system to work correctly.
PACKAGE – USES STYLE USAGE
Module
Debugging
& testing
Message the effect
of change
Planning incremental
development and
subsets
Uses
PACKAGE – USES STYLE - IN PRACTICE
Module
Uses
UML Diagram
DSM
( dependency structure matrix)
PACKAGE – GENERALIZATION STYLE
Module
 The generalization style results when the is-a relation is employed
 The parent module is a more general version of the child modules
(The parent module owns the commonalities, and the variations are
manifested in the children)
 Extensions can be made by adding, removing, or changing children
 A change to the parent will automatically change all the children that
inherit from it
 Generalization may represent inheritance of either interface,
implementation, or both
PACKAGE – GENERALIZATION STYLE USAGE
Module
Generalization
Reusable
Modules
enable
incremental
Extension
Capturing
commonalities
with variations
as children
Expressing
inheritance
In Object
oriented
PACKAGE – GENERALIZATION STYLE – IN PRACTICE
Module
Generalization
Inheritance Realization(implementation)
PACKAGE – LAYERED STYLE
Module
Layered
 The layered style, like all module styles, reflects a division of the
software into units
 Each layer represents a grouping of modules that offers a cohesive set
of services
 The layered view of architecture, shown with a layer diagram, is one of
the most commonly used views in software architecture
 Layering has one more fundamental property: The layers are created
to interact according to a strict ordering relation
 unidirectional allowed-to-use relation with each other.
 n-tier architecture is a physical structuring mechanism, while a n-layer
architecture is a logical structuring mechanism.
PACKAGE – LAYERED STYLE USAGE
Module
Promoting
reuse
Managing
complexity
& facilitating
code structure
communication
to developers
modifiability
&
portability
Achieving
separation
of concerns
Layered
PACKAGE – LAYERED STYLE – IN PRACTICE
Module
Layered
EXAM SAMPLE QUESTIONS ( OMG-OCUP2-FOUND100 )
1 What are some of the important semantics of packages? (choose three)
A. A class may be owned by multiple packages.
B. An element may be owned by at most one package.
C. The public contents of a package are accessible outside the package.
D. The public contents of a package are not accessible outside the package.
E. If a package is removed from a model, the owned contents are removed.
F. If a package is removed from a model, the owned contents are reassigned.
Answer : B,C,E
EXAM SAMPLE QUESTIONS ( OMG-OCUP2-FOUND100 )
2
A. Program package is imported to the Time datatype.
B. Program package is imported by the Types package.
C. Types package is imported by the Program package.
D. Time datatype is imported by the Program package.
E. Time and Integer datatypes are imported by the Program package.
Answer : D
EXAM SAMPLE QUESTIONS ( OMG-OCUP2-FOUND100 )
3 What are the primary purposes of packages in UML 2.0? (choose two)
A. to group classes
B. to provide a namespace
C. to group features for a class
D. to group modeling elements
E. to avoid the constraints of a namespace
Answer : B,D
THANKS
ENJOY UML
MAIL: ENG.MOHAMEDZAKARYA@GMAIL.COM

Weitere ähnliche Inhalte

Was ist angesagt?

Uml class diagram and packages ppt for dot net
Uml class diagram and packages ppt for dot netUml class diagram and packages ppt for dot net
Uml class diagram and packages ppt for dot netmekhap
 
OOAD - UML - Class and Object Diagrams - Lab
OOAD - UML - Class and Object Diagrams - LabOOAD - UML - Class and Object Diagrams - Lab
OOAD - UML - Class and Object Diagrams - LabVicter Paul
 
Unit 2(advanced class modeling & state diagram)
Unit  2(advanced class modeling & state diagram)Unit  2(advanced class modeling & state diagram)
Unit 2(advanced class modeling & state diagram)Manoj Reddy
 
Coupling and cohesion
Coupling and cohesionCoupling and cohesion
Coupling and cohesionSutha31
 
Unit 3(advanced state modeling & interaction meodelling)
Unit  3(advanced state modeling & interaction meodelling)Unit  3(advanced state modeling & interaction meodelling)
Unit 3(advanced state modeling & interaction meodelling)Manoj Reddy
 
UML diagrams and symbols
UML diagrams and symbolsUML diagrams and symbols
UML diagrams and symbolsKumar
 
CS8592-OOAD-UNIT II-STATIC UML DIAGRAMS PPT
CS8592-OOAD-UNIT II-STATIC UML DIAGRAMS PPTCS8592-OOAD-UNIT II-STATIC UML DIAGRAMS PPT
CS8592-OOAD-UNIT II-STATIC UML DIAGRAMS PPTleela rani
 
Uml diagrams
Uml diagramsUml diagrams
Uml diagramsbarney92
 
Uml with detail
Uml with detailUml with detail
Uml with detailHamza Khan
 
08 state diagram and activity diagram
08 state diagram and activity diagram08 state diagram and activity diagram
08 state diagram and activity diagramBaskarkncet
 
Class and object_diagram
Class  and object_diagramClass  and object_diagram
Class and object_diagramSadhana28
 
OOAD UNIT I UML DIAGRAMS
OOAD UNIT I UML DIAGRAMSOOAD UNIT I UML DIAGRAMS
OOAD UNIT I UML DIAGRAMSMikel Raj
 
State Machine Diagram
State Machine DiagramState Machine Diagram
State Machine DiagramNiloy Rocker
 
Design Patterns - General Introduction
Design Patterns - General IntroductionDesign Patterns - General Introduction
Design Patterns - General IntroductionAsma CHERIF
 

Was ist angesagt? (20)

Uml class diagram and packages ppt for dot net
Uml class diagram and packages ppt for dot netUml class diagram and packages ppt for dot net
Uml class diagram and packages ppt for dot net
 
OOAD - UML - Class and Object Diagrams - Lab
OOAD - UML - Class and Object Diagrams - LabOOAD - UML - Class and Object Diagrams - Lab
OOAD - UML - Class and Object Diagrams - Lab
 
Unit 2(advanced class modeling & state diagram)
Unit  2(advanced class modeling & state diagram)Unit  2(advanced class modeling & state diagram)
Unit 2(advanced class modeling & state diagram)
 
Cohesion and coupling
Cohesion and couplingCohesion and coupling
Cohesion and coupling
 
Uml diagrams usecase
Uml diagrams usecaseUml diagrams usecase
Uml diagrams usecase
 
Coupling and cohesion
Coupling and cohesionCoupling and cohesion
Coupling and cohesion
 
Unit 3(advanced state modeling & interaction meodelling)
Unit  3(advanced state modeling & interaction meodelling)Unit  3(advanced state modeling & interaction meodelling)
Unit 3(advanced state modeling & interaction meodelling)
 
UML diagrams and symbols
UML diagrams and symbolsUML diagrams and symbols
UML diagrams and symbols
 
Presentation on uml
Presentation on umlPresentation on uml
Presentation on uml
 
CS8592-OOAD-UNIT II-STATIC UML DIAGRAMS PPT
CS8592-OOAD-UNIT II-STATIC UML DIAGRAMS PPTCS8592-OOAD-UNIT II-STATIC UML DIAGRAMS PPT
CS8592-OOAD-UNIT II-STATIC UML DIAGRAMS PPT
 
Uml diagrams
Uml diagramsUml diagrams
Uml diagrams
 
Component Diagram
Component DiagramComponent Diagram
Component Diagram
 
Uml with detail
Uml with detailUml with detail
Uml with detail
 
08 state diagram and activity diagram
08 state diagram and activity diagram08 state diagram and activity diagram
08 state diagram and activity diagram
 
Oomd unit1
Oomd unit1Oomd unit1
Oomd unit1
 
Class and object_diagram
Class  and object_diagramClass  and object_diagram
Class and object_diagram
 
OOAD UNIT I UML DIAGRAMS
OOAD UNIT I UML DIAGRAMSOOAD UNIT I UML DIAGRAMS
OOAD UNIT I UML DIAGRAMS
 
State Machine Diagram
State Machine DiagramState Machine Diagram
State Machine Diagram
 
Types of UML diagrams
Types of UML diagramsTypes of UML diagrams
Types of UML diagrams
 
Design Patterns - General Introduction
Design Patterns - General IntroductionDesign Patterns - General Introduction
Design Patterns - General Introduction
 

Andere mochten auch

Lect-4: UML diagrams - Unified Modeling Language - SPM
Lect-4: UML diagrams - Unified Modeling Language - SPMLect-4: UML diagrams - Unified Modeling Language - SPM
Lect-4: UML diagrams - Unified Modeling Language - SPMMubashir Ali
 
Uml tutorial (1) (1)
Uml tutorial (1) (1)Uml tutorial (1) (1)
Uml tutorial (1) (1)IIUM
 
Uml Presentation
Uml PresentationUml Presentation
Uml Presentationmewaseem
 
Use Case Diagram
Use Case DiagramUse Case Diagram
Use Case DiagramAshesh R
 

Andere mochten auch (6)

Interfaces & Packages V2
Interfaces & Packages V2Interfaces & Packages V2
Interfaces & Packages V2
 
Lect-4: UML diagrams - Unified Modeling Language - SPM
Lect-4: UML diagrams - Unified Modeling Language - SPMLect-4: UML diagrams - Unified Modeling Language - SPM
Lect-4: UML diagrams - Unified Modeling Language - SPM
 
Package Diagram
Package DiagramPackage Diagram
Package Diagram
 
Uml tutorial (1) (1)
Uml tutorial (1) (1)Uml tutorial (1) (1)
Uml tutorial (1) (1)
 
Uml Presentation
Uml PresentationUml Presentation
Uml Presentation
 
Use Case Diagram
Use Case DiagramUse Case Diagram
Use Case Diagram
 

Ähnlich wie UML PACKAGE REFERENCE

Software architecture with SOA modeling Flavor
Software architecture with SOA modeling FlavorSoftware architecture with SOA modeling Flavor
Software architecture with SOA modeling FlavorMohamed Zakarya Abdelgawad
 
Packages access protection, importing packages
Packages   access protection, importing packagesPackages   access protection, importing packages
Packages access protection, importing packagesTharuniDiddekunta
 
Software Patterns
Software PatternsSoftware Patterns
Software Patternsbonej010
 
3.1 The design concepts.ppt
3.1 The design concepts.ppt3.1 The design concepts.ppt
3.1 The design concepts.pptTHARUNS44
 
Tool Driven Restructuring of Large Codebases
Tool Driven Restructuring of Large CodebasesTool Driven Restructuring of Large Codebases
Tool Driven Restructuring of Large CodebasesCodeOps Technologies LLP
 
Packages,static,this keyword in java
Packages,static,this keyword in javaPackages,static,this keyword in java
Packages,static,this keyword in javaVishnu Suresh
 
Principles of PHP Package Design (for AmsterdamPHP)
Principles of PHP Package Design (for AmsterdamPHP)Principles of PHP Package Design (for AmsterdamPHP)
Principles of PHP Package Design (for AmsterdamPHP)Matthias Noback
 
Introduction to OSGi
Introduction to OSGiIntroduction to OSGi
Introduction to OSGipradeepfn
 
Abap object-oriented-programming-tutorials
Abap object-oriented-programming-tutorialsAbap object-oriented-programming-tutorials
Abap object-oriented-programming-tutorialscesarmendez78
 
Java - Packages Concepts
Java - Packages ConceptsJava - Packages Concepts
Java - Packages ConceptsVicter Paul
 
Object oriented system design
Object oriented system designObject oriented system design
Object oriented system designMitesh Jalan
 
Object oriented basics
Object oriented basicsObject oriented basics
Object oriented basicsvamshimahi
 
7.Packages and Interfaces(MB).ppt .
7.Packages and Interfaces(MB).ppt             .7.Packages and Interfaces(MB).ppt             .
7.Packages and Interfaces(MB).ppt .happycocoman
 
Synapseindia strcture of dotnet development part 1
Synapseindia strcture of dotnet development part 1Synapseindia strcture of dotnet development part 1
Synapseindia strcture of dotnet development part 1Synapseindiappsdevelopment
 

Ähnlich wie UML PACKAGE REFERENCE (20)

Software architecture with SOA modeling Flavor
Software architecture with SOA modeling FlavorSoftware architecture with SOA modeling Flavor
Software architecture with SOA modeling Flavor
 
Uml2
Uml2Uml2
Uml2
 
Java packages oop
Java packages oopJava packages oop
Java packages oop
 
PMSE pdf
PMSE pdfPMSE pdf
PMSE pdf
 
Packages access protection, importing packages
Packages   access protection, importing packagesPackages   access protection, importing packages
Packages access protection, importing packages
 
Unit-4 Day1.pptx
Unit-4 Day1.pptxUnit-4 Day1.pptx
Unit-4 Day1.pptx
 
Software Patterns
Software PatternsSoftware Patterns
Software Patterns
 
3.1 The design concepts.ppt
3.1 The design concepts.ppt3.1 The design concepts.ppt
3.1 The design concepts.ppt
 
Packages in java
Packages in javaPackages in java
Packages in java
 
Tool Driven Restructuring of Large Codebases
Tool Driven Restructuring of Large CodebasesTool Driven Restructuring of Large Codebases
Tool Driven Restructuring of Large Codebases
 
Packages,static,this keyword in java
Packages,static,this keyword in javaPackages,static,this keyword in java
Packages,static,this keyword in java
 
Principles of PHP Package Design (for AmsterdamPHP)
Principles of PHP Package Design (for AmsterdamPHP)Principles of PHP Package Design (for AmsterdamPHP)
Principles of PHP Package Design (for AmsterdamPHP)
 
Introduction to OSGi
Introduction to OSGiIntroduction to OSGi
Introduction to OSGi
 
Abap object-oriented-programming-tutorials
Abap object-oriented-programming-tutorialsAbap object-oriented-programming-tutorials
Abap object-oriented-programming-tutorials
 
Java - Packages Concepts
Java - Packages ConceptsJava - Packages Concepts
Java - Packages Concepts
 
Object oriented system design
Object oriented system designObject oriented system design
Object oriented system design
 
Classes & Interfaces
Classes & InterfacesClasses & Interfaces
Classes & Interfaces
 
Object oriented basics
Object oriented basicsObject oriented basics
Object oriented basics
 
7.Packages and Interfaces(MB).ppt .
7.Packages and Interfaces(MB).ppt             .7.Packages and Interfaces(MB).ppt             .
7.Packages and Interfaces(MB).ppt .
 
Synapseindia strcture of dotnet development part 1
Synapseindia strcture of dotnet development part 1Synapseindia strcture of dotnet development part 1
Synapseindia strcture of dotnet development part 1
 

Mehr von Mohamed Zakarya Abdelgawad

EA foundations (Views, Repository, Artifacts and Metamodel)
EA foundations (Views, Repository, Artifacts and Metamodel)EA foundations (Views, Repository, Artifacts and Metamodel)
EA foundations (Views, Repository, Artifacts and Metamodel)Mohamed Zakarya Abdelgawad
 
Accenture/Insead Business Strategy Part 1 Certificate
Accenture/Insead Business Strategy Part 1 CertificateAccenture/Insead Business Strategy Part 1 Certificate
Accenture/Insead Business Strategy Part 1 CertificateMohamed Zakarya Abdelgawad
 
ITIL 4 Strategist Direct, Plan and Improve (DPI)
ITIL 4 Strategist Direct, Plan and Improve (DPI)ITIL 4 Strategist Direct, Plan and Improve (DPI)
ITIL 4 Strategist Direct, Plan and Improve (DPI)Mohamed Zakarya Abdelgawad
 
Architecture thinking w002 - Business Strategy Intro
Architecture thinking w002 - Business Strategy IntroArchitecture thinking w002 - Business Strategy Intro
Architecture thinking w002 - Business Strategy IntroMohamed Zakarya Abdelgawad
 

Mehr von Mohamed Zakarya Abdelgawad (20)

EA foundations (Views, Repository, Artifacts and Metamodel)
EA foundations (Views, Repository, Artifacts and Metamodel)EA foundations (Views, Repository, Artifacts and Metamodel)
EA foundations (Views, Repository, Artifacts and Metamodel)
 
Mohammed Zakarya Resume
Mohammed Zakarya ResumeMohammed Zakarya Resume
Mohammed Zakarya Resume
 
Mohamed zakarya certificates
Mohamed zakarya certificatesMohamed zakarya certificates
Mohamed zakarya certificates
 
Mohammed Zakarya Resume
Mohammed Zakarya ResumeMohammed Zakarya Resume
Mohammed Zakarya Resume
 
EA foundations (views + repository)
EA foundations (views + repository)EA foundations (views + repository)
EA foundations (views + repository)
 
EA foundations - 01 (views & viewpoints)
EA foundations - 01 (views & viewpoints)EA foundations - 01 (views & viewpoints)
EA foundations - 01 (views & viewpoints)
 
Accenture/Insead Business Strategy Part 1 Certificate
Accenture/Insead Business Strategy Part 1 CertificateAccenture/Insead Business Strategy Part 1 Certificate
Accenture/Insead Business Strategy Part 1 Certificate
 
Dpbok context i
Dpbok   context iDpbok   context i
Dpbok context i
 
Digital Practitioner Capability Context
Digital Practitioner Capability ContextDigital Practitioner Capability Context
Digital Practitioner Capability Context
 
DPBOK Foundation
DPBOK FoundationDPBOK Foundation
DPBOK Foundation
 
Certified Microservice Archtiect
Certified Microservice ArchtiectCertified Microservice Archtiect
Certified Microservice Archtiect
 
Certified Business Architect
Certified Business ArchitectCertified Business Architect
Certified Business Architect
 
ITIL 4 Strategist Direct, Plan and Improve (DPI)
ITIL 4 Strategist Direct, Plan and Improve (DPI)ITIL 4 Strategist Direct, Plan and Improve (DPI)
ITIL 4 Strategist Direct, Plan and Improve (DPI)
 
Architecture thinking w002 - Business Strategy Intro
Architecture thinking w002 - Business Strategy IntroArchitecture thinking w002 - Business Strategy Intro
Architecture thinking w002 - Business Strategy Intro
 
Architecture thinking w001
Architecture thinking w001Architecture thinking w001
Architecture thinking w001
 
Business Architecture Foundations
Business Architecture FoundationsBusiness Architecture Foundations
Business Architecture Foundations
 
Togaf 9.2 Introduction
Togaf 9.2 IntroductionTogaf 9.2 Introduction
Togaf 9.2 Introduction
 
Discover Your IT Career Path
Discover Your IT Career PathDiscover Your IT Career Path
Discover Your IT Career Path
 
ITIL V4 Foundation
ITIL V4 FoundationITIL V4 Foundation
ITIL V4 Foundation
 
SOA foundation - Generation 2
SOA foundation - Generation 2SOA foundation - Generation 2
SOA foundation - Generation 2
 

Kürzlich hochgeladen

group_15_empirya_p1projectIndustrial.pdf
group_15_empirya_p1projectIndustrial.pdfgroup_15_empirya_p1projectIndustrial.pdf
group_15_empirya_p1projectIndustrial.pdfneelspinoy
 
Piece by Piece Magazine
Piece by Piece Magazine                      Piece by Piece Magazine
Piece by Piece Magazine CharlottePulte
 
Unit1_Syllbwbnwnwneneneneneneentation_Sem2.pptx
Unit1_Syllbwbnwnwneneneneneneentation_Sem2.pptxUnit1_Syllbwbnwnwneneneneneneentation_Sem2.pptx
Unit1_Syllbwbnwnwneneneneneneentation_Sem2.pptxNitish292041
 
How to Empower the future of UX Design with Gen AI
How to Empower the future of UX Design with Gen AIHow to Empower the future of UX Design with Gen AI
How to Empower the future of UX Design with Gen AIyuj
 
guest bathroom white and blue ssssssssss
guest bathroom white and blue ssssssssssguest bathroom white and blue ssssssssss
guest bathroom white and blue ssssssssssNadaMohammed714321
 
10 Best WordPress Plugins to make the website effective in 2024
10 Best WordPress Plugins to make the website effective in 202410 Best WordPress Plugins to make the website effective in 2024
10 Best WordPress Plugins to make the website effective in 2024digital learning point
 
simpson-lee_house_dt20ajshsjsjsjsjj15.pdf
simpson-lee_house_dt20ajshsjsjsjsjj15.pdfsimpson-lee_house_dt20ajshsjsjsjsjj15.pdf
simpson-lee_house_dt20ajshsjsjsjsjj15.pdfLucyBonelli
 
Karim apartment ideas 02 ppppppppppppppp
Karim apartment ideas 02 pppppppppppppppKarim apartment ideas 02 ppppppppppppppp
Karim apartment ideas 02 pppppppppppppppNadaMohammed714321
 
world health day 2024.pptxgbbvggvbhjjjbbbb
world health day 2024.pptxgbbvggvbhjjjbbbbworld health day 2024.pptxgbbvggvbhjjjbbbb
world health day 2024.pptxgbbvggvbhjjjbbbbpreetirao780
 
Interior Design for Office a cura di RMG Project Studio
Interior Design for Office a cura di RMG Project StudioInterior Design for Office a cura di RMG Project Studio
Interior Design for Office a cura di RMG Project StudioRMG Project Studio
 
Pharmaceutical Packaging for the elderly.pdf
Pharmaceutical Packaging for the elderly.pdfPharmaceutical Packaging for the elderly.pdf
Pharmaceutical Packaging for the elderly.pdfAayushChavan5
 
怎么办理英国Newcastle毕业证纽卡斯尔大学学位证书一手渠道
怎么办理英国Newcastle毕业证纽卡斯尔大学学位证书一手渠道怎么办理英国Newcastle毕业证纽卡斯尔大学学位证书一手渠道
怎么办理英国Newcastle毕业证纽卡斯尔大学学位证书一手渠道yrolcks
 
DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...
DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...
DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...Rishabh Aryan
 
Giulio Michelon, Founder di @Belka – “Oltre le Stime: Sviluppare una Mentalit...
Giulio Michelon, Founder di @Belka – “Oltre le Stime: Sviluppare una Mentalit...Giulio Michelon, Founder di @Belka – “Oltre le Stime: Sviluppare una Mentalit...
Giulio Michelon, Founder di @Belka – “Oltre le Stime: Sviluppare una Mentalit...Associazione Digital Days
 
cda.pptx critical discourse analysis ppt
cda.pptx critical discourse analysis pptcda.pptx critical discourse analysis ppt
cda.pptx critical discourse analysis pptMaryamAfzal41
 
AI and Design Vol. 2: Navigating the New Frontier - Morgenbooster
AI and Design Vol. 2: Navigating the New Frontier - MorgenboosterAI and Design Vol. 2: Navigating the New Frontier - Morgenbooster
AI and Design Vol. 2: Navigating the New Frontier - Morgenbooster1508 A/S
 
Top 10 Modern Web Design Trends for 2025
Top 10 Modern Web Design Trends for 2025Top 10 Modern Web Design Trends for 2025
Top 10 Modern Web Design Trends for 2025Rndexperts
 
General Knowledge Quiz Game C++ CODE.pptx
General Knowledge Quiz Game C++ CODE.pptxGeneral Knowledge Quiz Game C++ CODE.pptx
General Knowledge Quiz Game C++ CODE.pptxmarckustrevion
 
Karim apartment ideas 01 ppppppppppppppp
Karim apartment ideas 01 pppppppppppppppKarim apartment ideas 01 ppppppppppppppp
Karim apartment ideas 01 pppppppppppppppNadaMohammed714321
 
Map of St. Louis Parks
Map of St. Louis Parks                              Map of St. Louis Parks
Map of St. Louis Parks CharlottePulte
 

Kürzlich hochgeladen (20)

group_15_empirya_p1projectIndustrial.pdf
group_15_empirya_p1projectIndustrial.pdfgroup_15_empirya_p1projectIndustrial.pdf
group_15_empirya_p1projectIndustrial.pdf
 
Piece by Piece Magazine
Piece by Piece Magazine                      Piece by Piece Magazine
Piece by Piece Magazine
 
Unit1_Syllbwbnwnwneneneneneneentation_Sem2.pptx
Unit1_Syllbwbnwnwneneneneneneentation_Sem2.pptxUnit1_Syllbwbnwnwneneneneneneentation_Sem2.pptx
Unit1_Syllbwbnwnwneneneneneneentation_Sem2.pptx
 
How to Empower the future of UX Design with Gen AI
How to Empower the future of UX Design with Gen AIHow to Empower the future of UX Design with Gen AI
How to Empower the future of UX Design with Gen AI
 
guest bathroom white and blue ssssssssss
guest bathroom white and blue ssssssssssguest bathroom white and blue ssssssssss
guest bathroom white and blue ssssssssss
 
10 Best WordPress Plugins to make the website effective in 2024
10 Best WordPress Plugins to make the website effective in 202410 Best WordPress Plugins to make the website effective in 2024
10 Best WordPress Plugins to make the website effective in 2024
 
simpson-lee_house_dt20ajshsjsjsjsjj15.pdf
simpson-lee_house_dt20ajshsjsjsjsjj15.pdfsimpson-lee_house_dt20ajshsjsjsjsjj15.pdf
simpson-lee_house_dt20ajshsjsjsjsjj15.pdf
 
Karim apartment ideas 02 ppppppppppppppp
Karim apartment ideas 02 pppppppppppppppKarim apartment ideas 02 ppppppppppppppp
Karim apartment ideas 02 ppppppppppppppp
 
world health day 2024.pptxgbbvggvbhjjjbbbb
world health day 2024.pptxgbbvggvbhjjjbbbbworld health day 2024.pptxgbbvggvbhjjjbbbb
world health day 2024.pptxgbbvggvbhjjjbbbb
 
Interior Design for Office a cura di RMG Project Studio
Interior Design for Office a cura di RMG Project StudioInterior Design for Office a cura di RMG Project Studio
Interior Design for Office a cura di RMG Project Studio
 
Pharmaceutical Packaging for the elderly.pdf
Pharmaceutical Packaging for the elderly.pdfPharmaceutical Packaging for the elderly.pdf
Pharmaceutical Packaging for the elderly.pdf
 
怎么办理英国Newcastle毕业证纽卡斯尔大学学位证书一手渠道
怎么办理英国Newcastle毕业证纽卡斯尔大学学位证书一手渠道怎么办理英国Newcastle毕业证纽卡斯尔大学学位证书一手渠道
怎么办理英国Newcastle毕业证纽卡斯尔大学学位证书一手渠道
 
DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...
DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...
DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...
 
Giulio Michelon, Founder di @Belka – “Oltre le Stime: Sviluppare una Mentalit...
Giulio Michelon, Founder di @Belka – “Oltre le Stime: Sviluppare una Mentalit...Giulio Michelon, Founder di @Belka – “Oltre le Stime: Sviluppare una Mentalit...
Giulio Michelon, Founder di @Belka – “Oltre le Stime: Sviluppare una Mentalit...
 
cda.pptx critical discourse analysis ppt
cda.pptx critical discourse analysis pptcda.pptx critical discourse analysis ppt
cda.pptx critical discourse analysis ppt
 
AI and Design Vol. 2: Navigating the New Frontier - Morgenbooster
AI and Design Vol. 2: Navigating the New Frontier - MorgenboosterAI and Design Vol. 2: Navigating the New Frontier - Morgenbooster
AI and Design Vol. 2: Navigating the New Frontier - Morgenbooster
 
Top 10 Modern Web Design Trends for 2025
Top 10 Modern Web Design Trends for 2025Top 10 Modern Web Design Trends for 2025
Top 10 Modern Web Design Trends for 2025
 
General Knowledge Quiz Game C++ CODE.pptx
General Knowledge Quiz Game C++ CODE.pptxGeneral Knowledge Quiz Game C++ CODE.pptx
General Knowledge Quiz Game C++ CODE.pptx
 
Karim apartment ideas 01 ppppppppppppppp
Karim apartment ideas 01 pppppppppppppppKarim apartment ideas 01 ppppppppppppppp
Karim apartment ideas 01 ppppppppppppppp
 
Map of St. Louis Parks
Map of St. Louis Parks                              Map of St. Louis Parks
Map of St. Louis Parks
 

UML PACKAGE REFERENCE

  • 1. UML REFERENCE WITH ARCHITECTURE CONCEPTS SUBMITTED BY : MOHAMED ZAKARYA
  • 2. PACKAGE DIAGRAM AGENDA • What is A Package ? • Package Notation • Package Stereotype • Package Visibility • Relation Among Packages • Dependency stereotypes ( Import & Access) • Merging Package • Use Case Package • Package Architecture Concepts • Exam Sample Questions ( OMG-OCUP2-FOUND100 )
  • 4. WHAT IS A PACKAGE ? Package Package is A general-purpose mechanism for organizing elements into groups [ Package provide Namespace ] Package Container For any of the logical model elements such as Use Case diagrams, Sequence diagrams, Class diagrams, and even other packages.
  • 5. PACKAGE NOTATION Package Graphically Package is rendered as a tabbed folder Package Content can be drawn inside the package OR outside the package attached by a line
  • 7. PACKAGE VISIBILITY Package Elements in a package may have public or private visibility + public - Private Visibility Visibility description Public Elements within package are accessible outside the package Private Elements available only to other elements inside the package
  • 8. RELATION AMONG PACKAGES Package dependency relationship • Two packages one depend on correct occurrence of the other • means that at least one class in a package has to communicate with at least one class in the other package • Eg : relation between FishPackage , WaterPackage Generalization relationship • Parent-child relationship • means that at least one class in a package has to inherit with at least one class in the other package • Eg : relation between FishPackage , AnimalPackage
  • 9. DEPENDENCY STEREOTYPES ( IMPORT & ACCESS) Package Package Import • import can be a public import Or private import with public as the default • Public import use <<import>> stereotype • Private import use <<access>> stereotype A public import <<import>> means imported elements have public visibility inside the importing namespace; A private import <<access>> means imported elements have private visibility inside the importing namespace. .
  • 10. DEPENDENCY STEREOTYPES ( IMPORT & ACCESS) Package If Package X import receiving ,, it will see purchasing ( public import ) – include in its runtime If Package Y import shipping ,, it won’t see receiving ( private import - access ) – access only means not include in its runtime
  • 11. MERGING PACKAGE Package Mechanism to merge the content of package When package merges another package , any class of the same type and name automatically extends ( OR has a generalization relationship) to the original one Notes : • Private members of a package aren't merged with anything. • Subpackages within the merged package are added to the merging package if they don't already exist. • If a subpackage with the same name already exists in the merging package, another merge is started between the two subpackages.
  • 12. MERGING PACKAGE - SAMPLE Package
  • 13. MERGING PACKAGE – SAMPLE RESULT Package Result After Merging
  • 14. USE CASE PACKAGE Package Use case packages • organize the functional behavior of a system during analysis • provide understandable terms for team members outside analysis team Managers can depend on use case package to discuss project at appropriate level of details without getting down into details Tracking use case packages means tracking customer values
  • 15. USE CASE PACKAGE - SAMPLE Package
  • 16. PACKAGE ARCHITECTURE CONCEPTS Decomposition Uses Generalization Layered Package
  • 17. PACKAGE – DECOMPOSITION STYLE Package  Architect tend to attach a problem by use of divide and conquer technique ( divide complex problem to smaller ones )  Show the structure of modules and submodules  divide responsibilities into manageable pieces (implementation units)  Code organization into modules and show how system responsibilities Are partitioned across them  Decomposition defined modules that may appear in other styles like uses, generalization, layered, other module based views  Usually decomposition is first step architect start with to model their system (First step towards details architecture)
  • 18. PACKAGE – DECOMPOSITION STYLE DESIGN CRITERIA Module Decomposition Build versus buy decisions Some modules may be bought from market place, or reuse of old projects or obtained as open source. Achievement of certain quality attributes For example, to support Modifiability:  Information hiding design principle will reduce side effects.  Limit global impact of local design changes.  Eg. Remote control with TV or Air Conditioner Product line implementation  make products of product family, make some sort of separation  Separate common modules from variable modules that differ across products Team Allocation  make responsibilities done in parallel, separate modules that can be allocated to different team should be defined  Skills of development team may change decomposition,
  • 19. PACKAGE – DECOMPOSITION STYLE USAGE Module Decomposition Support the learning process about a system for newcomers to the project input for the work assignment view of a system Show effects of change in addition to uses style
  • 20. PACKAGE – DECOMPOSITION STYLE IN PRACTICE Module Decomposition UML Diagram List Catalog
  • 21. PACKAGE – USES STYLE Module Uses  The uses style shows how modules depend on each other  helpful for planning because it helps define subsets and increments of the system being developed  module uses another module if its correctness depends on the correctness of the other  Goes one step further to reveal which modules use which other modules. This style tells developers what other modules must exist for their portion of the system to work correctly.
  • 22. PACKAGE – USES STYLE USAGE Module Debugging & testing Message the effect of change Planning incremental development and subsets Uses
  • 23. PACKAGE – USES STYLE - IN PRACTICE Module Uses UML Diagram DSM ( dependency structure matrix)
  • 24. PACKAGE – GENERALIZATION STYLE Module  The generalization style results when the is-a relation is employed  The parent module is a more general version of the child modules (The parent module owns the commonalities, and the variations are manifested in the children)  Extensions can be made by adding, removing, or changing children  A change to the parent will automatically change all the children that inherit from it  Generalization may represent inheritance of either interface, implementation, or both
  • 25. PACKAGE – GENERALIZATION STYLE USAGE Module Generalization Reusable Modules enable incremental Extension Capturing commonalities with variations as children Expressing inheritance In Object oriented
  • 26. PACKAGE – GENERALIZATION STYLE – IN PRACTICE Module Generalization Inheritance Realization(implementation)
  • 27. PACKAGE – LAYERED STYLE Module Layered  The layered style, like all module styles, reflects a division of the software into units  Each layer represents a grouping of modules that offers a cohesive set of services  The layered view of architecture, shown with a layer diagram, is one of the most commonly used views in software architecture  Layering has one more fundamental property: The layers are created to interact according to a strict ordering relation  unidirectional allowed-to-use relation with each other.  n-tier architecture is a physical structuring mechanism, while a n-layer architecture is a logical structuring mechanism.
  • 28. PACKAGE – LAYERED STYLE USAGE Module Promoting reuse Managing complexity & facilitating code structure communication to developers modifiability & portability Achieving separation of concerns Layered
  • 29. PACKAGE – LAYERED STYLE – IN PRACTICE Module Layered
  • 30. EXAM SAMPLE QUESTIONS ( OMG-OCUP2-FOUND100 ) 1 What are some of the important semantics of packages? (choose three) A. A class may be owned by multiple packages. B. An element may be owned by at most one package. C. The public contents of a package are accessible outside the package. D. The public contents of a package are not accessible outside the package. E. If a package is removed from a model, the owned contents are removed. F. If a package is removed from a model, the owned contents are reassigned. Answer : B,C,E
  • 31. EXAM SAMPLE QUESTIONS ( OMG-OCUP2-FOUND100 ) 2 A. Program package is imported to the Time datatype. B. Program package is imported by the Types package. C. Types package is imported by the Program package. D. Time datatype is imported by the Program package. E. Time and Integer datatypes are imported by the Program package. Answer : D
  • 32. EXAM SAMPLE QUESTIONS ( OMG-OCUP2-FOUND100 ) 3 What are the primary purposes of packages in UML 2.0? (choose two) A. to group classes B. to provide a namespace C. to group features for a class D. to group modeling elements E. to avoid the constraints of a namespace Answer : B,D

Hinweis der Redaktion

  1. Information hiding design principle used for encapsulate the changeable aspects of the system in a separate module.
  2. Show responsibilities of system in form of modules and submodule
  3. Show responsibilities of system in form of modules and submodule