+ All Categories
Home > Documents > Creating a UML Profile in SPARX EAcommunity.sparxsystems.com/system/files/tutorial/257...a UML...

Creating a UML Profile in SPARX EAcommunity.sparxsystems.com/system/files/tutorial/257...a UML...

Date post: 23-Aug-2020
Category:
Upload: others
View: 2 times
Download: 0 times
Share this document with a friend
15
S C T U Ta 5/ SPARX Creating a U This paper is an ML profile. ad Anderson /27/2011 X EA UML Profil n overview of m e making a Softw ware Product Li ne Engineering g
Transcript
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

 

 

 

 

SC  TU Ta5/ 

SPARXCreating a U

This paper is anML profile. 

ad Anderson /27/2011 

XEAUML Profil

n overview of m

 

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

 

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

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

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

 

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. 

 

 

 

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

 

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. 

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

 

Se

 

 

 

Cl

 

elect class diag

lick ok on the p

gram in the nex

profile diagram

xt form. 

m form. 

 

 

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

 

 

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.

 

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

 

D

 

 

N

 

 

 

rag a Stereotyp

ame it mandat

pe onto the pa

tory alternative

age. 

e. 

 

 

 

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

 

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

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

 

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

 

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

 

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

 

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

 

 

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

 

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

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

 

 


Recommended