| With the extensive use of real-time systems, how to improve the time features of the systems becomes the focus of research. In the real-time systems, time features crosscut the system, span objects and modules, and blend with core functional modules. Designing and maintaining such systems is full of risks and difficulties. But traditional software development method (like: object-oriented software development method) dose not provide the mechanism of separating the non-functional concerns such as time features from core function unit. So the realization of the code is mixed with each other. And the modularity and extensibility are badly influenced.Aspect-Oriented programming can separate the crosscut concern, encapsulate and deal with the non-functional features concentratedly such as time features. The idea of separating concerns was applied to the research of time features, aspect description of time features was realized and an automatic generating tool of describing time features based on AOP (Aspect-Oriented Programming, AOP) was put forward and realized to generate the aspect code automatically in this paper. The content of this paper can be generalized as follows.Through a comprehensive understanding of real-time systems, the characters of modeling language were researched from different points of view. The time features (like: periodicity, scheduling, start/end time, response time, exist time etc) that exist in the real-time systems were summed up. The ability to describe the time features of modeling language was compared based on time features.The fundamental principles of AOP were analyzed. The applications of AOP in real-time field were researched and the advantage and necessity of using AOP on time features were pointed out.The characters of time features were analyzed based on AOP. Combining with real application examples, for different types of time features, how to encapsulate the time features to aspect was illustrated by taking aspect-oriented software development method. At the same time, the corresponding aspect description and realization of each time feature were given.An automatic generating tool of describing time features was put forward and realized based on AOP. Through defining the aspect generating template and parameters in XML document, the time features separated from real-time systems were generated to aspect code automatically. Thus, the development is more convenient, the efficiency is enhanced of the systems, and the realization of the time features in the real-time systems is ensured. |