软件系统的非功能需求通常横切整个系统,采用面向对象的软件开发方法会导致代码缠结和分散。提出一种面向方面的非功能需求建模方法,通过扩展UML表达面向方面的概念,识别系统的功能需求和非功能需求,根据相应的需求得出系统的功能模型和非功能模型,然后将系统的非功能需求用方面实现,功能需求用组件实现,最后将组件和方面编织在一起形成最终的系统。这种方法降低了软件系统的开发难度,提高了系统的模块性、可重用性和可维护性。最后给出了应用实例。
The non-functional requirements of software system usually crosscut the entire system.The use of object-oriented software development approach may lead to code tangling and scattering.This paper presents an aspect-oriented method to model non-functional requirements.Functional requirements and non-functional requirements of the system are identified by expanding UML to support concepts of aspect-orientation,the functional models and non-functional models of the system are elicited according to corresponding requirements,and then to realize the functional requirements with components and the non-functional requirements with aspects,at last,the final system is formed by weaving components and aspects together.This approach reduces the difficulty of software system development and improves the modularity,reusability and maintainability of the system. In the end,the application instance was presented as well.