Towards Vertical Impact Analysis of UML Models Tao
Total Page:16
File Type:pdf, Size:1020Kb
Towards Vertical Impact Analysis of UML Models By: Tao Yue A thesis submitted to the Faculty of Graduate Studies and Research In partial fulfillment of the requirements for the degree of Master of Applied Science Ottawa-Carleton Institute of Electrical and Computer Engineering Department of Systems and Computer Engineering Carleton University Ottawa, Ontario, Canada July 2006 Copywright © 2006 by Tao Yue Reproduced with permission of the copyright owner. Further reproduction prohibited without permission. Library and Bibliotheque et Archives Canada Archives Canada Published Heritage Direction du Branch Patrimoine de I'edition 395 Wellington Street 395, rue Wellington Ottawa ON K1A 0N4 Ottawa ON K1A 0N4 Canada Canada Your file Votre reference ISBN: 978-0-494-18337-3 Our file Notre reference ISBN: 978-0-494-18337-3 NOTICE: AVIS: The author has granted a non L'auteur a accorde une licence non exclusive exclusive license allowing Library permettant a la Bibliotheque et Archives and Archives Canada to reproduce,Canada de reproduire, publier, archiver, publish, archive, preserve, conserve,sauvegarder, conserver, transmettre au public communicate to the public by par telecommunication ou par I'lnternet, preter, telecommunication or on the Internet,distribuer et vendre des theses partout dans loan, distribute and sell theses le monde, a des fins commerciales ou autres, worldwide, for commercial or non sur support microforme, papier, electronique commercial purposes, in microform,et/ou autres formats. paper, electronic and/or any other formats. The author retains copyright L'auteur conserve la propriete du droit d'auteur ownership and moral rights in et des droits moraux qui protege cette these. this thesis. Neither the thesis Ni la these ni des extraits substantiels de nor substantial extracts from it celle-ci ne doivent etre imprimes ou autrement may be printed or otherwise reproduits sans son autorisation. reproduced without the author's permission. In compliance with the Canadian Conformement a la loi canadienne Privacy Act some supporting sur la protection de la vie privee, forms may have been removed quelques formulaires secondaires from this thesis. ont ete enleves de cette these. While these forms may be includedBien que ces formulaires in the document page count, aient inclus dans la pagination, their removal does not represent il n'y aura aucun contenu manquant. any loss of content from the thesis. i * i Canada Reproduced with permission of the copyright owner. Further reproduction prohibited without permission. Abstract During iterative, UML-based software development, various UML diagrams, modeling the same system at different levels of abstractions are developed. These models must remain consistent when changes are performed. In this context, we refine the notion of impact analysis and distinguish horizontal impact analysis-that focuses on changes and impacts at one level of abstraction, and vertical impact analysis-that focuses on changes at one level of abstraction and their impacts on another level. We propose a vertical impact analysis approach for UML 2.0 models which is based on a careful formalization of changes to those models, refinements which are composed of those changes, and traceability links corresponding to refinements. We show how actual refinements and corresponding traceability links are formalized using the Object Constraint Language. Tool support and an initial case study are also described. 3 Reproduced with permission of the copyright owner. Further reproduction prohibited without permission. Ackno wledgm ents First, I would like to sincerely express my thanks to Dr. Briand and Dr. Labiche for their help and guidance throughout my research. I have learnt a great deal from them. I would like to thank Maged Elaasar for his help, encouragement and patience. I would like to thank everyone at the SQUALL Lab for mutual support, inspiration and encouragement. I would like my thesis to be acknowledged in memory of my dear father who is always in my deep heart and with warmest thanks to my mother, my brothers and sisters for their unconditional support, encouragement and love. A special thanks goes to my husband, Wenjun Bian, for his constant support, care and love. Without him, I could not accomplish this thesis. Last, but not least, I would like to thank all my friends for their support and encouragement. 4 Reproduced with permission of the copyright owner. Further reproduction prohibited without permission. Table of Contents1 ABSTRACT................................................................................................................................................... 3 ACKNOWLEDGMENTS............................................................................................................................. 4 TABLE OF CONTENTS.............................................................................................................................. 5 LIST OF FIGURES.......................................................................................................................................7 LIST OF TABLES.......................................................................................................................................10 1 INTRODUCTION................................................................................................................................. 11 2 DEFINITIONS AND CONCEPTS...................................................................................................... 14 2.1 V ie w s ...................................................................................................................................................................................................14 2 .2 Im p a c t a n a l y s is .......................................................................................................................................................................... 14 2.3 A t o m ic c h a n g e ............................................................................................................................................................................15 2 .4 Re f in e m e n t .....................................................................................................................................................................................15 2.5 T raceability a n d traceability l i n k ...........................................................................................................................16 3 STATE OF THE ART.......................................................................................................................... 17 3.1 Cl a s s if y in g a n d identifying r e f in e m e n t ................................................................................................................. 18 3.2 Ca p t u r in g traceability information ........................................................................................................................23 3.3 P e r f o r m in g im p a c t a n a l y s i s ............................................................................................................................................25 3.4 Su m m a r y ...........................................................................................................................................................................................33 4 APPROACH TAKEN........................................................................................................................... 34 4.1 M e t a m o d e l s .................................................................................................................................................................................. 35 4 .2 T a x o n o m y o f A t o m ic c h a n g e s ........................................................................................................................................4 4 4.3 T a x o n o m y o f Re f in e m e n t s ................................................................................................................................................ 45 4.4 Re f in e m e n t /T raceability l in k specification ......................................................................................................4 6 5 AUTOMATION.................................................................................................................................... 51 5.1 T h e E c l ip se P l a t f o r m .............................................................................................................................................................52 5.2 Ra t io n a l S o f t w a r e A r c h it e c t .......................................................................................................................................55 5.3 E M F M o d e l s in V IA T o o l ......................................................................................................................................................56 6 CASE STUDY........................................................................................................................................59 6.1 D e t a il A s s o F unctionality ........................................................... 6 0 6 .2 Turn A t t r i I nto Cl a s s ................................................................................................................................................................62 6.3 A s s o End Multiplicity Re f ......................................................................................................................................................64