Uml package diagram

815 views 28 slides Aug 22, 2020
Slide 1
Slide 1 of 28
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28

About This Presentation

UML Package diagram


Slide Content

UML Package
Diagrams
M.Vedaraj
Assistant Professor/CSE
R.M.D. Engineering College

UML Package Diagram:
• Packagediagramisusedtorepresentthelogical
architectureofthesystem.
• Itillustratesthelayers,subsystem,andpackages.
• UsingUMLpackagediagram,theelementsofthesystem
canbegroupedtogether.
• UMLpackagescangroupanything,forinstanceclasses,
otherpackages,usecasesandsoon.
• Packagescanbenested.Thatmeansonepackagemay
containotherpackage.
• Ifthepackageshavesomeinnermembersthenitsname
mustbeshownonthetab.
• Thedependencylinecanbeshowninthepackage
diagram.itshowsthedependentpackages.

Basic Notations used in
Package diagram
•Apackageisanorganizedgroupofelements.Apackage
maycontainstructuralthingslikeclasses,components,
andotherpackagesinit.

Types of Layers:
Types of Layers:
•There are three types of layer. They are
•UI layer: This layer is created using the web pages or
swing or applet classes.
•Domain Layer: This layer consists of software objects for
representing domain concepts.
•Technical Service layer: For working of the higher layer
object some services are required such as maintaining
error logs or accessing the database and so on.

What is the relationship between
SSD and UseCase ?
•Asystemsequencediagram(SSD)isapicturethatshows,
foraparticularscenarioofausecase,theeventsthat
externalactorsgeneratetheirorder,andinter-system
events.
A system sequence diagram should specify and show the
following:
•External actors
•Messages invoked by these actors
•Return values associated with previous messages
•Indication of any loops or iteration area

Example of an SSD

Relationship between SSDs and Use Case

How to Name System
Events and Operations?
•Choose event and operation names at abstract level.
•Start the name of a system with verb such as add, enter,
insert, make etc.
.

Guidelines
•The sequence diagram generally represents only one
scenario of use case model.
•System event must be represented at the abstract level.
•The system event must be usually a verb. For example
display, enter, select, eject and so on.
•The sequence diagram can represent the collaboration
with other external systems.

Finding the conceptual class
hierarchies.
•Generalization
Generalizationistheactivityofidentifyingcommonality
amongconceptsanddefiningsuperclass(generalconcept)
andsubclass(specializedconcept)relationships.

UML notation

Generalization and Class
Sets
Allmembersofaconceptualsubclasssetare
membersoftheirsuperclassset.Forexample,interms
ofsetmembership,allinstancesoftheset
CreditPaymentarealsomembersofthesetPayment.
InaVenndiagram,thisisshownasinFigure.

Conceptual Subclass
Definition Conformance
•Whenaclasshierarchyiscreated,statementsabout
superclassesthatapplytosubclassesaremade.For
example,AllPaymentshaveanamountandare
associatedwithaSale.

Guideline: 100% Rule
•100%oftheconceptualsuperclass'sdefinitionshouldbe
applicabletothesubclass.Thesubclassmustconform
to100%ofthesuperclass's:
•Attributes
•Associations

Is-a Rule
•All the members of a subclass set must be members of
their superclass set.

What Is a Correct
Conceptual Subclass?
•Apotentialsubclassshouldconformtothe:
•100%Rule(definitionconformance)
•Is-aRule(setmembershipconformance)

When to Define a
Conceptual Subclass?
• The subclass has additional attributes of interest.
• The subclass has additional associations of interest.
• The subclass concept is operated on, handled,
reacted to, or manipulated differently than the superclass.

When to Define a
Conceptual Superclass
• Thepotentialconceptualsubclassesrepresent
variationsofasimilarconcept.
• Thesubclasseswillconformtothe100%andIs-a
rules.

Attribute:
•An attribute is a logical data value of an object.
•Attributes are used to describe any object or concept or
anything.
•Attributes are also defined as characteristic property of
an object.
Student
Name
Regno
address

UML Attribute Notation:
•Attributes are shown in the second compartment of the
class box .

More Notation:
•ThefullsyntaxforanattributeintheUMLis:
visibilityname:typemultiplicity=default{property-string

Derived Attributes:

Valid Attribute Types:
•The attributes in a domain model should preferably be
simple attributes or data types.
•Very common attribute data types include: Boolean,
Date, Number, String(Text), Time
•Other common types include: Address, Color,
Geometries (Point, Rectangle),Phone Number, Social
Security Number, Universal Product Code (UPC),
SKU,ZIP or postal codes, enumerated types

Valid Attribute Types:

'Description' Class
•Adescriptionclasscontainsinformationthatdescribes
somethingelse.Forexample,aProductDescriptionthat
recordstheprice,picture,andtextdescriptionofanItem.

Inception
Thepurposeoftheinceptionphaseisnottodefineallthe
requirements,orgenerateabelievableestimateorprojectplan.
Mostrequirementsanalysisoccursduringtheelaborationphase,
inparallelwithearlyproduction-qualityprogrammingand
testing.

Inception