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

skip to main content
10.1007/11785477_27guideproceedingsArticle/Chapter ViewAbstractPublication PagesConference Proceedingsacm-pubtype
Article

Demeter interfaces: adaptive programming without surprises

Published: 03 July 2006 Publication History

Abstract

Adaptive Programming (AP) provides advanced modularization mechanisms for traversal related concerns over data structures in object-oriented programs. Computation along a traversal is defined through specialized visitors while the traversal itself is separately defined against a graph-based model of the underlying data structure with the ability to abstract over graph node names and edges. Modifying, under certain restrictions, the program's data structure does not alter the program's overall behavior. Even though AP is geared towards more easily evolvable systems, certain limitations of current AP tools hamper code reuse and system evolvability. Reasoning about adaptive code becomes difficult since there is no guarantee that a modification to a data structure will not alter the meaning of the program. Furthermore, adaptive programs are defined directly against a program's complete underlying data structure exposing unrelated information and introducing hardcoded dependencies decreasing reusability, modularity and hampering evolution. In this paper we present Demeter Interfaces through which a more thorough design method of adaptive programs allows for more resilient software. Traversal specifications and Visitors are defined against an interface class graph augmented with additional constraints that capture structural properties that must hold in order for the adaptive code to function correctly. A program implements a Demeter interface by providing a mapping between the program's concrete data structure and the interface class graph. We show how Demeter interfaces allow for higher levels of reusability and modularity of adaptive code while the static verification of constraints guards against behavior altering modifications. We also discuss the applicability of Demeter Interfaces to XML technologies.

References

[1]
The Demeter Group: The DAJ website. http://www.ccs.neu.edu/research/demeter/DAJ (2005)
[2]
Lieberherr, K. J., Orleans, D.: Preventive program maintenance in Demeter/Java (research demonstration). In: International Conference on Software Engineering, Boston, MA, ACM Press (1997) 604-605
[3]
Lieberherr, K. J., Riel, A. J.: Demeter: A CASE study of software growth through parameterized classes. Journal of Object-Oriented Programming 1(3) (1988) 8-22 A shorter version of this paper was presented at the 10th International Conference on Software Engineering, Singapore, April 1988, IEEE Press, pages 254-264.
[4]
Mezini, M., Lieberherr, K. J.: Adaptive plug-and-play components for evolutionary software development. In Chambers, C., ed.: Object-Oriented Programming Systems, Languages and Applications Conference, in Special Issue of SIGPLAN Notices, Vancouver, ACM (1998) 97-116
[5]
Lieberherr, K. J., Lorenz, D., Mezini, M.: Programming with Aspectual Components. Technical Report NU-CCS-99-01, College of Computer Science, Northeastern University, Boston, MA (1999)
[6]
Ovlinger, J., Wand, M.: A language for specifying recursive traversals of object structures. In: OOPSLA '99: Proceedings of the 14th ACM SIGPLAN conference on Object-oriented programming, systems, languages, and applications, New York, NY, USA, ACM Press (1999) 70-81
[7]
Sung, J.: Aspectual Concepts. Technical Report NU-CCS-02-06, Northeastern University (2002) Master's Thesis, http://www.ccs.neu.edu/home/lieber/theses-index.html.
[8]
Lieberherr, K. J.: Adaptive Object-Oriented Software: The Demeter Method with Propagation Patterns. PWS Publishing Company, Boston (1996) 616 pages, ISBN 0-534-94602-X.
[9]
Lieberherr, K., Patt-Shamir, B., Orleans, D.: Traversals of object structures: Specification and efficient implementation. ACM Trans. Program. Lang. Syst. 26(2) (2004) 370-412
[10]
Lieberherr, K. J., Patt-Shamir, B.: The refinement relation of graph-based generic programs. In Jazayeri, M., Loos, R., Musser, D., eds.: 1998 Schloss Dagstuhl Workshop on Generic Programming, Springer (2000) 40-52 LNCS 1766.
[11]
Doug Orleans and Karl J. Lieberherr: AP Library: The Core Algorithms of AP: Home page. http://www.ccs.neu.edu/research/demeter/AP-Library/ (1999)
[12]
Skotiniotis, T., Lorenz, D.: Conaj: Generating contracts as aspects. Technical Report NUCCIS- 04-03, College of Computer and Information Science, Northeastern University (2004)
[13]
Skotiniotis, T., Lorenz, D. H.: Cona: aspects for contracts and contracts for aspects. In: OOPSLA '04: Companion to the 19th annual ACM SIGPLAN conference on Object-oriented programming systems, languages, and applications, New York, NY, USA, ACMPress (2004) 196-197
[14]
Kiczales, G., Mezini, M.: Aspect-oriented programming and modular reasoning. In: ICSE '05: Proceedings of the 27th International Conference on Software Engineering, New York, NY, USA, ACM Press (2005) 49-58
[15]
Lieberherr, K. J., Palm, J., Sundaram, R.: Expressiveness and complexity of crosscut languages. In: Proceedings of the 4th workshop on Foundations of Aspect-Oriented Languages (FOAL 2005). (2005)
[16]
Gamma, E., Helm, R., Johnson, R., Vlissides, J.: Design Patterns: Elements of Reusable Object-Oriented Software. Addison-Wesley (1995)
[17]
Aldrich, J.: Open Modules:modular reasoning about advice. In: European Conference on Object-Oriented Programming. (2005)
[18]
Sulivan, K., Griswold, W. G., Song, Y., Cai, Y., Shonle, M., Tewan, N., Rajan, H.: On the criteria to be used in decomposing systems into aspects. In: European Software Engineering Conference and International Symposium on the Foundations of Software Engineering. (2005)
[19]
Sullivan, K., Griswold, W. G., Song, Y., Shonle, M., Tewari, N., Cai, Y., Rajan, H.: Modular software design and crosscutting interfaces. In: IEEE Software, Special Issue on Aspect Oriented Programming. (2006)
[20]
Kiczales, G., Mezini, M.: Separation of concerns with procedures, annotations, advice and pointcuts. In: European Conference on Object-Oriented Programming. (2005)
[21]
Kellens, A., Mens, K., Brichau, J., Gybels, K.: Managing the evolutions of aspect-oriented software with model-based pointcuts. In: European Conference on Object Oriented Programming. (2006)
[22]
Koppen, C., Störzer, M.: PCDiff: Attacking the fragile pointcut problem. In: European Interactive Workshop on Aspects in Software (EIWAS). (2004)
[23]
Störzer, M., Graf, J.: Using pointcut delta analysis to support evolution of aspect-oriented software. In: 21st IEEE International Conference on Software Maintenance. (2005)
[24]
Mens, K., Kellens, A., Pluquet, F., Wuyts, R.: co-evolving code and design with intensional views - a case study. Computer Languages, Systems and Structures (2006)
[25]
The Demeter Group: The DAJ beta website. http://www.ccs.neu.edu/home/skotthe/daj (2005)

Cited By

View all
  • (2009)Controlled evolution of adaptive programsProceedings of the joint international and annual ERCIM workshops on Principles of software evolution (IWPSE) and software evolution (Evol) workshops10.1145/1595808.1595826(89-98)Online publication date: 24-Aug-2009
  • (2008)Modularity firstProceedings of the 7th international conference on Aspect-oriented software development10.1145/1353482.1353486(25-35)Online publication date: 31-Mar-2008
  • (2006)Managing the evolution of aspect-oriented software with model-based pointcutsProceedings of the 20th European conference on Object-Oriented Programming10.1007/11785477_28(501-525)Online publication date: 3-Jul-2006

Recommendations

Comments

Please enable JavaScript to view thecomments powered by Disqus.

Information & Contributors

Information

Published In

cover image Guide Proceedings
ECOOP'06: Proceedings of the 20th European conference on Object-Oriented Programming
July 2006
525 pages
ISBN:3540357262
  • Editor:
  • Dave Thomas

Sponsors

  • ILOG
  • Google Inc.
  • Sun Microsystems
  • Microsoft Research: Microsoft Research
  • IBM: IBM

Publisher

Springer-Verlag

Berlin, Heidelberg

Publication History

Published: 03 July 2006

Qualifiers

  • Article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)0
  • Downloads (Last 6 weeks)0
Reflects downloads up to 18 Nov 2024

Other Metrics

Citations

Cited By

View all
  • (2009)Controlled evolution of adaptive programsProceedings of the joint international and annual ERCIM workshops on Principles of software evolution (IWPSE) and software evolution (Evol) workshops10.1145/1595808.1595826(89-98)Online publication date: 24-Aug-2009
  • (2008)Modularity firstProceedings of the 7th international conference on Aspect-oriented software development10.1145/1353482.1353486(25-35)Online publication date: 31-Mar-2008
  • (2006)Managing the evolution of aspect-oriented software with model-based pointcutsProceedings of the 20th European conference on Object-Oriented Programming10.1007/11785477_28(501-525)Online publication date: 3-Jul-2006

View Options

View options

Login options

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media