Top Banner
Assessment of metrics for the Product Lines context Márcio Ribeiro (CIn-UFPE) Camila Nunes (LES-PUC-Rio) Fernanda d’Amorim (CIn-UFPE) Rodrigo Bonifácio (CIn-UFPE) Paulo Borba (CIn-UFPE)
14

Assessment of metrics for the Product Lines context Márcio Ribeiro (CIn-UFPE) Camila Nunes (LES-PUC-Rio) Fernanda d’Amorim (CIn-UFPE) Rodrigo Bonifácio.

Dec 14, 2015

Download

Documents

Sincere Derrick
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Assessment of metrics for the Product Lines context Márcio Ribeiro (CIn-UFPE) Camila Nunes (LES-PUC-Rio) Fernanda d’Amorim (CIn-UFPE) Rodrigo Bonifácio.

Assessment of metrics for theProduct Lines context

Márcio Ribeiro (CIn-UFPE)Camila Nunes (LES-PUC-Rio)

Fernanda d’Amorim (CIn-UFPE)Rodrigo Bonifácio (CIn-UFPE)

Paulo Borba (CIn-UFPE)

Page 2: Assessment of metrics for the Product Lines context Márcio Ribeiro (CIn-UFPE) Camila Nunes (LES-PUC-Rio) Fernanda d’Amorim (CIn-UFPE) Rodrigo Bonifácio.

2

Applying actual metrics…

120x160

Concern: Screen Size

176x208 128x128

CDC(Screen Size) = 3

Page 3: Assessment of metrics for the Product Lines context Márcio Ribeiro (CIn-UFPE) Camila Nunes (LES-PUC-Rio) Fernanda d’Amorim (CIn-UFPE) Rodrigo Bonifácio.

3

CDC(Screen Size) = 3

Seems to be bad ifwe consider one product!

But for Product Linesseems to be good!

Page 4: Assessment of metrics for the Product Lines context Márcio Ribeiro (CIn-UFPE) Camila Nunes (LES-PUC-Rio) Fernanda d’Amorim (CIn-UFPE) Rodrigo Bonifácio.

4

This way…

Do we need different metricsfor Product Lines?

Page 5: Assessment of metrics for the Product Lines context Márcio Ribeiro (CIn-UFPE) Camila Nunes (LES-PUC-Rio) Fernanda d’Amorim (CIn-UFPE) Rodrigo Bonifácio.

5

Agenda

Applying metrics in subfeatures

New metrics

Case study representativity

Framework and future work

Page 6: Assessment of metrics for the Product Lines context Márcio Ribeiro (CIn-UFPE) Camila Nunes (LES-PUC-Rio) Fernanda d’Amorim (CIn-UFPE) Rodrigo Bonifácio.

6

Applying metrics in subfeatures

CDC(Screen Size) = 3

CDC(120x160) = 1

CDC(176x208) = 1

CDC(128x128) = 1

Variants

CVDC(120x160) = 1

CVDC(176x208) = 1

CVDC(128x128) = 1

Concern Variant Diffusion over Components

Page 7: Assessment of metrics for the Product Lines context Márcio Ribeiro (CIn-UFPE) Camila Nunes (LES-PUC-Rio) Fernanda d’Amorim (CIn-UFPE) Rodrigo Bonifácio.

7

So…

CVDC = CDC applied to subfeatures?

Page 8: Assessment of metrics for the Product Lines context Márcio Ribeiro (CIn-UFPE) Camila Nunes (LES-PUC-Rio) Fernanda d’Amorim (CIn-UFPE) Rodrigo Bonifácio.

8

A second example

//#ifdef device_screen_176x205//# //# public static final int LOADING_MESSAGE_AREA = 154;//#//#elif device_screen_128x160//#//# public static final int LOADING_MESSAGE_AREA = 118;//#//#elif device_screen_132x176//#//# public static final int LOADING_MESSAGE_AREA = 118;

CDLOC(Screen size) = 2CVDLOC(176x205) = 2;CVDLOC(128x160) = 2;CVDLOC(132x176) = 2;

Tangling!

Page 9: Assessment of metrics for the Product Lines context Márcio Ribeiro (CIn-UFPE) Camila Nunes (LES-PUC-Rio) Fernanda d’Amorim (CIn-UFPE) Rodrigo Bonifácio.

9

Again…

CVDLOC = CDLOC applied to subfeatures?

Page 10: Assessment of metrics for the Product Lines context Márcio Ribeiro (CIn-UFPE) Camila Nunes (LES-PUC-Rio) Fernanda d’Amorim (CIn-UFPE) Rodrigo Bonifácio.

10

Calculating metrics for subfeatures

It is important! Not so scattered (CDC, CVDC example) Mora tangled (CDLOC, CVDLOC example) Complexity

CVLOC(UML) = 2000

CVLOC(Java) = 1000

CLOC(Notation) = 3000

Page 11: Assessment of metrics for the Product Lines context Márcio Ribeiro (CIn-UFPE) Camila Nunes (LES-PUC-Rio) Fernanda d’Amorim (CIn-UFPE) Rodrigo Bonifácio.

11

New metrics?

CVDC

NCVC

CVLOC

CVDLOC

Or are they the same but applied under a

different perspective?

Page 12: Assessment of metrics for the Product Lines context Márcio Ribeiro (CIn-UFPE) Camila Nunes (LES-PUC-Rio) Fernanda d’Amorim (CIn-UFPE) Rodrigo Bonifácio.

12

Case study representativity

Feature types (mandatory, optional, XOR, OR) Granularity (coarsed and fine) Crosscutting, not crosscutting Functional, non-functional Homogeneous, Heterogeneous Feature interaction Binding times (static and dynamic) Different sizes

Page 13: Assessment of metrics for the Product Lines context Márcio Ribeiro (CIn-UFPE) Camila Nunes (LES-PUC-Rio) Fernanda d’Amorim (CIn-UFPE) Rodrigo Bonifácio.

13

Possible case studies

Mobile Media Mandatory, Optional, OR

Freemind Optional Fine-grained Crosscutting Heterogeneous Different binding times

ArgoUML Alternative Not crosscutting Coarsed-grained

Page 14: Assessment of metrics for the Product Lines context Márcio Ribeiro (CIn-UFPE) Camila Nunes (LES-PUC-Rio) Fernanda d’Amorim (CIn-UFPE) Rodrigo Bonifácio.

14

Concluding Remarks

Future work Analyze more metrics If needed, define new ones Apply them in case studies Define a framework