Mapping Aspect-Oriented Domain-Specific Model to Code for Real Time System

Haitao Song, Zhumei Song, Shixiong Zheng · 2006

Model-integrated computing (MIC) benefits from aspect-oriented programming (AOP) during real-time system modeling process. However, crosscutting concerns, which MIC wants to eliminate, still appear because of lacking the elements to describe aspects directly in ordinary C++ language when the model is interpreted to source code. This paper presents an approach to interpret the aspect-oriented domain-specific model to AOP source code. Firstly, crosscutting concerns are defined as separated aspects during aspect-oriented (AO) modeling. Secondly, AOP model interpreter traverses these aspects and generates AOP code in Aspect C++. Subsequently, the weaver of Aspect C++ language weaves the aspects into a real system. This process fits well with the OMG's model driven architecture (MDA). The AOP model interpreter can be integrated into generic modeling environment (GME) conveniently, so as to support the whole process of system development using AO. Furthermore, the weaving is postponed from model interpreting to AOP language interpreting, which focuses the model-designers' attention on the construction of domain model itself and integrates the ability of AOP weaver in stock into the mapping procedure from AO model to AO application smoothly. Finally, several examples are described to illustrate the encapsulation of crosscutting concerns with the support of AOP model interpreter

Read the paper · More papers on PaperTik