Nothing Special   »   [go: up one dir, main page]

skip to main content
10.1145/2430475.2430482acmotherconferencesArticle/Chapter ViewAbstractPublication PagesinternetwareConference Proceedingsconference-collections
short-paper

Detecting source code changes to maintain the consistence of behavioral model

Published: 30 October 2012 Publication History

Abstract

It is well-known that as software system evolves, the source code tends to deviate from its design model so that maintaining their consistence is challenging. Our objective is to detect code changes that influence designed program behaviour which are referred as design level changes and update the behavioural model timely and automatically to maintain consistence. We propose an approach that filters out low-level source code changes that do not influence program behaviour, abstracts code changes into updating operations for behavioral model, and automates the integration and update of activity diagrams to maintain consistence. We've recognised that it is not uncommon for developers to introduce quick and dirty implementation that unnecessarily increases program complexity or introduces suboptimal behaviour changes. So while merging code changes into behaviour model, our approach also calculates cyclometric complexity variation before and after the process so that developers can be alerted of significant and/or detrimental changes. Our tool allows the user to approve the change in code before merging and updating the model.

References

[1]
L. Angyal, L. Lengyel, and H. Charaf. A synchronizing technique for syntactic model-code round-trip engineering. In Engineering of Computer Based Systems, 2008. ECBS 2008. 15th Annual IEEE International Conference and Workshop on the, pages 463--472. IEEE, 2008.
[2]
L. Briand, Y. Labiche, and J. Leduc. Toward the reverse engineering of uml sequence diagrams for distributed java software. Software Engineering, IEEE Transactions on, 32(9):642--663, 2006.
[3]
L. Briand, Y. Labiche, and Y. Miao. Towards the reverse engineering of uml sequence diagrams. In proceedings of the 10th Working Conference on Reverse Engineering, page 57. IEEE Computer Society, 2003.
[4]
S. Chawathe, A. Rajaraman, H. Garcia-Molina, and J. Widom. Change detection in hierarchically structured information. In ACM SIGMOD Record, volume 25, pages 493--504. ACM, 1996.
[5]
B. Fluri, M. Wursch, M. PInzger, and H. Gall. Change distilling: Tree differencing for fine-grained source code change extraction. Software Engineering, IEEE Transactions on, 33(11):725--743, 2007.
[6]
D. Hearnden, M. Lawley, and K. Raymond. Incremental model transformation for the evolution of model-driven systems. Model Driven Engineering Languages and Systems, pages 321--335, 2006.
[7]
S. Hidaka, Z. Hu, K. Inaba, H. Kato, and K. Nakano. Groundtram: An integrated framework for developing well-behaved bidirectional model transformations. In Automated Software Engineering (ASE), 2011 26th IEEE/ACM International Conference on, pages 480--483. IEEE, 2011.
[8]
T. Parr, J. Lilly, P. Wells, R. Klaren, M. Illouz, J. Mitchell, S. Stanchfield, J. Coker, M. Zukowski, and C. Flack. Antlr reference manual. MageLang Institute, document version, 2(0), 2003.
[9]
L. Peters. Change detection in xml trees: a survey. In 3rd Twente Student Conference on IT, 2005.
[10]
L. Wang, J. Yuan, X. Yu, J. Hu, X. Li, and G. Zheng. Generating test cases from uml activity diagram based on gray-box method. In Software Engineering Conference, 2004. 11th Asia-Pacific, pages 284--291. IEEE, 2004.
[11]
Y. Wang, D. DeWitt, and J. Cai. X-diff: An effective change detection algorithm for xml documents. In Data Engineering, 2003. Proceedings. 19th International Conference on, pages 519--530. Ieee, 2003.
[12]
Y. Yu, Y. Lin, Z. Hu, S. Hidaka, H. Kato, and L. Montrieux. Maintaining invariant traceability through bidirectional transformations. In 34th International Conference on Software Engineering (ICSE), pages 540--550, 2012.

Recommendations

Comments

Please enable JavaScript to view thecomments powered by Disqus.

Information & Contributors

Information

Published In

cover image ACM Other conferences
Internetware '12: Proceedings of the Fourth Asia-Pacific Symposium on Internetware
October 2012
204 pages
ISBN:9781450318884
DOI:10.1145/2430475
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

Sponsors

  • NJU: Nanjing University
  • Tsinghua University: Tsinghua University
  • CCF: China Computer Federation

In-Cooperation

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 30 October 2012

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. behavioral model
  2. software maintenance
  3. source code differencing

Qualifiers

  • Short-paper

Funding Sources

Conference

Internetware '12
Sponsor:
  • NJU
  • Tsinghua University
  • CCF

Acceptance Rates

Overall Acceptance Rate 55 of 111 submissions, 50%

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • 0
    Total Citations
  • 124
    Total Downloads
  • Downloads (Last 12 months)0
  • Downloads (Last 6 weeks)0
Reflects downloads up to 23 Sep 2024

Other Metrics

Citations

View Options

Get Access

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media