传统面向对象(OOP)框架对软件的变化性和复杂性支持有限。为此,基于C++语言,提出一种支持动态演化的面向方面编程框架——AODF。给出Bigraph理论的静态和动态建模过程,通过Bigraph反应系统实现AODF的动态演化,使用图形及形式化的项语言表述其演化过程。实验结果表明,与传统OOP框架相比,AODF的代码模块化程度更高,软件系统扩展性更好。
To solve the problems that the traditional Object-oriented Programming(OOP) framework supports the change and complexity of software insufficiently,it proposes an Aspect-oriented Programming(AOP) framework supporting dynamic evolution,called AODF,which is based on C++ language.It proposes the static and dynamic modeling process of Bigraph theory,realizes AODF dynamic evolution via Bigraph Reaction System(BRS) and depicts evolution process by using its graph and formal term language.Experimental results show that AODF is more modular,and it has better scalability of the software system,compared with OOP.