A Framework Based on Design Patterns: Implementing UML Association, Aggregation and Composition Relationships in the Context of Model-Driven Code Generation

A Framework Based on Design Patterns: Implementing UML Association, Aggregation and Composition Relationships in the Context of Model-Driven Code Generation

Manoli Albert, Marta Ruiz, Javier Munoz, Vincente Pelechano
ISBN13: 9781591408963|ISBN10: 1591408962|ISBN13 Softcover: 9781591408970|EISBN13: 9781591408987
DOI: 10.4018/978-1-59140-896-3.ch004
Cite Chapter Cite Chapter

MLA

Albert, Manoli, et al. "A Framework Based on Design Patterns: Implementing UML Association, Aggregation and Composition Relationships in the Context of Model-Driven Code Generation." Object-Oriented Design Knowledge: Principles, Heuristics and Best Practices, edited by Javier Garzás and Mario Piattini, IGI Global, 2007, pp. 56-103. https://doi.org/10.4018/978-1-59140-896-3.ch004

APA

Albert, M., Ruiz, M., Munoz, J., & Pelechano, V. (2007). A Framework Based on Design Patterns: Implementing UML Association, Aggregation and Composition Relationships in the Context of Model-Driven Code Generation. In J. Garzás & M. Piattini (Eds.), Object-Oriented Design Knowledge: Principles, Heuristics and Best Practices (pp. 56-103). IGI Global. https://doi.org/10.4018/978-1-59140-896-3.ch004

Chicago

Albert, Manoli, et al. "A Framework Based on Design Patterns: Implementing UML Association, Aggregation and Composition Relationships in the Context of Model-Driven Code Generation." In Object-Oriented Design Knowledge: Principles, Heuristics and Best Practices, edited by Javier Garzás and Mario Piattini, 56-103. Hershey, PA: IGI Global, 2007. https://doi.org/10.4018/978-1-59140-896-3.ch004

Export Reference

Mendeley
Favorite

Abstract

This chapter proposes a framework based on design patterns to implement UML association, aggregation, and composition relationships. To build the framework, we propose a semantic interpretation of these concepts that avoids the ambiguities introduced by UML. This interpretation is achieved by using a set of properties that allows us to characterize these kinds of relationships. Once the semantics of the relationships have been defined, we propose a framework based on design patterns for the systematic generation of a software representation. The framework is based on the properties that characterize the relationships. It provides a high-quality solution and introduces important benefits with regard to other existing implementation approaches. This work proposes an implementation strategy that defines a set of mappings between the conceptual abstractions and the proposed framework. This strategy enables the automatic instantiation of the framework. Finally, to validate the proposal, we present a C# implementation of a collaboration pattern. Collaboration patterns are analysis patterns constituted by two classes that are related by an association, an aggregation or a composition relationship.

Request Access

You do not own this content. Please login to recommend this title to your institution's librarian or purchase it from the IGI Global bookstore.