Creating a UML Profile in SPARX EAcommunity.sparxsystems.com/system/files/tutorial/257...a UML...
Transcript of Creating a UML Profile in SPARX EAcommunity.sparxsystems.com/system/files/tutorial/257...a UML...
![Page 1: Creating a UML Profile in SPARX EAcommunity.sparxsystems.com/system/files/tutorial/257...a UML Profile es them avail reuse from p UML stereo of the stere lable from th roject to pro](https://reader036.fdocuments.in/reader036/viewer/2022062605/5fd3286c9303e2450578323f/html5/thumbnails/1.jpg)
SC TU Ta5/
SPARXCreating a U
This paper is anML profile.
ad Anderson /27/2011
XEAUML Profil
n overview of m
e
making a Softwware Product Line Engineeringg
![Page 2: Creating a UML Profile in SPARX EAcommunity.sparxsystems.com/system/files/tutorial/257...a UML Profile es them avail reuse from p UML stereo of the stere lable from th roject to pro](https://reader036.fdocuments.in/reader036/viewer/2022062605/5fd3286c9303e2450578323f/html5/thumbnails/2.jpg)
IN
I rreFe I wFe
NTRODUCTI
recently decideused a baseleature, and S
wanted to eneature, and S
ON
ded to updateine project thtatic Modelin
nhance that ptatic Modelin
e the Producthat containedng.
ackage a littleng. Creating a
t Line Engineed a folder stru
e by creating a profile mak
ering Assets Iucture and the
a UML Profilees them avail
reuse from pe UML stereo
e of the sterelable from th
project to prootypes neede
eotypes neede toolbox and
oject. In the pd to do Use C
ed to do Use d the resourc
1
past I Cases,
Cases, ces tree.
![Page 3: Creating a UML Profile in SPARX EAcommunity.sparxsystems.com/system/files/tutorial/257...a UML Profile es them avail reuse from p UML stereo of the stere lable from th roject to pro](https://reader036.fdocuments.in/reader036/viewer/2022062605/5fd3286c9303e2450578323f/html5/thumbnails/3.jpg)
2
The Software Product Line Engineering UML profile can be used to create diagrams like the ones I have shown below. The point of this paper is to show you how to create the profile, not use it or introduce Software Product Line Engineering (SPLE). If you are interested in SPLE you can check out the references and links section at the end of this paper. The next section digs into the creation of a UML profile. Use Case-
Features-
Static Models-
User
«kernal»Check Out
extension points:Payment
«kernal»Pay with Cash «optional»
Pay with Credit Card
«optional»Pay with Debit Card
Payment
«extend»
Payment
«extend»
Payment
«extend»
«exactly-one-of feature group»Monitor
«default feature»21 Inch Low-def
«alternative feature»27 inch Hi-def
{ mutually exclusive feature }
«default feature package»Login
«kernal»Manual Login
«optional»Facial Recognition
User
(from UC)
«optional-abstract-vp,mobile interface component»Pick
«optional-abstract-vp,mobile interface component»Load
![Page 4: Creating a UML Profile in SPARX EAcommunity.sparxsystems.com/system/files/tutorial/257...a UML Profile es them avail reuse from p UML stereo of the stere lable from th roject to pro](https://reader036.fdocuments.in/reader036/viewer/2022062605/5fd3286c9303e2450578323f/html5/thumbnails/4.jpg)
C
Th
Ad
REATING A
he first thing to
dd a new class
UML PROF
o create is a ne
s diagram to yo
ILE
ew Class View.
our view.
3
![Page 5: Creating a UML Profile in SPARX EAcommunity.sparxsystems.com/system/files/tutorial/257...a UML Profile es them avail reuse from p UML stereo of the stere lable from th roject to pro](https://reader036.fdocuments.in/reader036/viewer/2022062605/5fd3286c9303e2450578323f/html5/thumbnails/5.jpg)
G
D
G
o to the Toolb
rag a new prof
ive your profile
ox. Select mor
file on to your
e a new and th
re tools and th
class diagram.
hen select Auto
hen select Profi
omatically add
ile.
a new diagram
m.
4
![Page 6: Creating a UML Profile in SPARX EAcommunity.sparxsystems.com/system/files/tutorial/257...a UML Profile es them avail reuse from p UML stereo of the stere lable from th roject to pro](https://reader036.fdocuments.in/reader036/viewer/2022062605/5fd3286c9303e2450578323f/html5/thumbnails/6.jpg)
Se
Cl
elect class diag
lick ok on the p
gram in the nex
profile diagram
xt form.
m form.
5
![Page 7: Creating a UML Profile in SPARX EAcommunity.sparxsystems.com/system/files/tutorial/257...a UML Profile es them avail reuse from p UML stereo of the stere lable from th roject to pro](https://reader036.fdocuments.in/reader036/viewer/2022062605/5fd3286c9303e2450578323f/html5/thumbnails/7.jpg)
O
Th
D
pen the class d
he Metaclass is
rag a new Met
diagram in you
s the element t
taclass onto th
ur new profile p
that will define
e class diagram
package.
e the type elem
m. Scroll down
ment that will b
n and select Us
be generated b
seCase in the E
by the profile.
Element colum
n and click ok.
6
![Page 8: Creating a UML Profile in SPARX EAcommunity.sparxsystems.com/system/files/tutorial/257...a UML Profile es them avail reuse from p UML stereo of the stere lable from th roject to pro](https://reader036.fdocuments.in/reader036/viewer/2022062605/5fd3286c9303e2450578323f/html5/thumbnails/8.jpg)
D
N
rag a Stereotyp
ame it mandat
pe onto the pa
tory alternative
age.
e.
7
![Page 9: Creating a UML Profile in SPARX EAcommunity.sparxsystems.com/system/files/tutorial/257...a UML Profile es them avail reuse from p UML stereo of the stere lable from th roject to pro](https://reader036.fdocuments.in/reader036/viewer/2022062605/5fd3286c9303e2450578323f/html5/thumbnails/9.jpg)
Cr
Yo
Co
al
reate an exten
ou should have
ontinue to dra
ternative : opt
d relationship
e what is show
g Stereotypes
tional” and inc
from the Stere
wn below.
onto the page
ludes the “:”.
eotype to the M
until you have
Metaclass.
e what is showwn below. Notiice the one is n
named “mand
8
atory
![Page 10: Creating a UML Profile in SPARX EAcommunity.sparxsystems.com/system/files/tutorial/257...a UML Profile es them avail reuse from p UML stereo of the stere lable from th roject to pro](https://reader036.fdocuments.in/reader036/viewer/2022062605/5fd3286c9303e2450578323f/html5/thumbnails/10.jpg)
W
El
When you are d
ement column
done drag addi
n and click ok.
ng all the UseC
Then add all t
Case steriotype
he stereotypes
es drag anothe
s shown below
er Metaclass on
w.
nto page and sselect UseCase
9
in the
![Page 11: Creating a UML Profile in SPARX EAcommunity.sparxsystems.com/system/files/tutorial/257...a UML Profile es them avail reuse from p UML stereo of the stere lable from th roject to pro](https://reader036.fdocuments.in/reader036/viewer/2022062605/5fd3286c9303e2450578323f/html5/thumbnails/11.jpg)
Re
epeat the proccess for the 2 ddiagrams below
w.
10
![Page 12: Creating a UML Profile in SPARX EAcommunity.sparxsystems.com/system/files/tutorial/257...a UML Profile es them avail reuse from p UML stereo of the stere lable from th roject to pro](https://reader036.fdocuments.in/reader036/viewer/2022062605/5fd3286c9303e2450578323f/html5/thumbnails/12.jpg)
O
an
Fi
nce complete
nywhere on th
le the dialog in
you can reuse
e class diagram
n with the app
your profile by
m and select Sa
ropriate inform
y exporting it a
ave as Profile…
mation and sav
and importing
… from the cont
ve it where you
it into the proj
text menu.
u want.
ject you wish t
to use it on. Ri
11
ight click
![Page 13: Creating a UML Profile in SPARX EAcommunity.sparxsystems.com/system/files/tutorial/257...a UML Profile es them avail reuse from p UML stereo of the stere lable from th roject to pro](https://reader036.fdocuments.in/reader036/viewer/2022062605/5fd3286c9303e2450578323f/html5/thumbnails/13.jpg)
To
Ju
N
o use the profi
ust right click U
avigate to whe
le go to the Re
UML Profiles an
ere you saved t
esources tab an
nd then click on
the profile and
nd import the
n Import Profil
d click import.
profile under U
e
UML Profiles.
12
![Page 14: Creating a UML Profile in SPARX EAcommunity.sparxsystems.com/system/files/tutorial/257...a UML Profile es them avail reuse from p UML stereo of the stere lable from th roject to pro](https://reader036.fdocuments.in/reader036/viewer/2022062605/5fd3286c9303e2450578323f/html5/thumbnails/14.jpg)
Yo
ou now have thhe profile appe
Toolb
ear in your too
box
olboxes and in yyour resourcess.
Resoources
13
![Page 15: Creating a UML Profile in SPARX EAcommunity.sparxsystems.com/system/files/tutorial/257...a UML Profile es them avail reuse from p UML stereo of the stere lable from th roject to pro](https://reader036.fdocuments.in/reader036/viewer/2022062605/5fd3286c9303e2450578323f/html5/thumbnails/15.jpg)
14
REFERENCES
Designing Software Product Lines with UML: From Use Cases to Pattern-based Software Architectures By Hassan
Gomaa. ISBN: 0201775956; Published: Jul 7, 2004; Copyright 2005.
LINKS
Software Engineering Institute Framework for Product Line Practices Site
Software Product Lines Discussion Board
PLEES
Software Product Lines
Suggested Reading
Download the Software Process Engineering Resource Kit