摘要
面向方面编程(AOP)提供模块化横切关注点的机制,有效地解决横切属性引起的代码混乱和代码分散等问题。但是,AOP目前大都用在程序级和执行级,在软件开发的早期阶段中运用较少。在需求分析阶段分离功能关注点和非功能关注点,运用UML类图、状态图对方面进行建模,并实现非功能关注点的编织,完成系统建模的整个过程,并在此基础上给出了方面间的检测和解决方法。
AOP can solve code-tangling and code-scattering effectively caused by crosscutting attributes with the mechanism of crosscutting concerns modeling. But, now AOP is mostly used on the programming level and the implementation level, and very less work is used on the early developing stages. AOP is applied in the process of the requirements engineering. On the requirements analysis phase,functional concerns and non-functional concerns are separated, and the functional class and aspect are modeled by class diagrams and state-chart diagrams with UML. The non-functional concerns are weaving in the system, and the whole process of modeling is accomplished. Based on the process, the method is presented to detect and solve the mismatch among the aspects.
出处
《计算机应用与软件》
CSCD
北大核心
2007年第6期35-36,81,共3页
Computer Applications and Software
基金
河北省自然科学基金(F2006000647)