In the course of software system development, a very important job is to analysis the problems needed to be resolved according to the Object-Oriented method. It is to say that we must make clear that how many entities in these problems, and the properties of each entity, then the relationship among the entities, and so on. Then we conclude the same properties and operations to a class, definitude the properties and methods of every class, i.e. to define the class. At present, in the process of class definition, system developers implement design and definition of class by coding, after the grasp of whole system and the comprehension of UML model. The definitions of this class are isolated codes based on the comprehension of developer, they have no relatives to the pre-generated UML model, so it is very easy to make misunderstand of what they catch. This paper discusses on the background of that. It begins with the study of modeling tools of UML model, by the explanation of Object-Oriented method and contrast of methods between traditional and Object-Oriented, then it reaches the interaction process among UML model, database design and resource codes. Then the paper has a study on the general implement method of class's basic operator functions, to the different environments of develop languages. And then the paper has an explanation for class definition template, by finding out the method of design, management, maintenance for knowledge base. It puts forward the methods of building knowledge base and pick-up of the knowledge for the base. For the relationship of element between UML model and class, this paper gets the rules of mapping regulations, realizes the pick-up of mapping regulations based on the general mechanism of UML model, and the knowledge base —the core of the class generator—is generated. Finally, this paper synthetically utilizes the knowledge of database and formatted langue, tries to design and implement a tool to generate resource code s by introducing UML model, after the building of UML model. |