creating a uml profile in sparx eacommunity.sparxsystems.com/system/files/tutorial/257...a uml...
TRANSCRIPT
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
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.
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
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
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
Se
Cl
elect class diag
lick ok on the p
gram in the nex
profile diagram
xt form.
m form.
5
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
D
N
rag a Stereotyp
ame it mandat
pe onto the pa
tory alternative
age.
e.
7
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
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
Re
epeat the proccess for the 2 ddiagrams below
w.
10
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
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
Yo
ou now have thhe profile appe
Toolb
ear in your too
box
olboxes and in yyour resourcess.
Resoources
13
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