Based on object-oriented technology simulation of plant root base class library
|School||Kunming University of Science and Technology|
|Course||Agricultural Biological Environmental and Energy Engineering|
|Keywords||Object-oriented The root of the plant Foundation of Classes reuse technology|
Application of computer simulation for plant roots can be a true reflection of plant root growth and development in three-dimensional space,and visually display the morphology of plant root distribution in the computer screen.The traditional virtual plant roots need to modify the code from the original Simulation program,leading to repeat a lot of work. This article is based on the disadvantage of the traditional virtual plant roots and use object-oriented technology to develop the Foundation Classes Library of plant roots. The library strongly supports the plant roots simulation software development model, greatly improving the software development resources in the re-utilization and sharing. Foundation Classes Library of the plant roots can quickly and efficiently develop a high re-usability and high maintenance of the Foundation Classes Library. And based on object-oriented technology and software reuse technology, introduced object-oriented technology based on the plant roots Foundation Classes Library reuse and polymorphism and inheritance mechanism, described the development of plant roots-Foundation Classes Library design ideas as well as specific steps and be achieved in specific applications and verification.Papers start at theory and practice, focuses on object-oriented class library, that emphasis on plant root development technology. Firstly, from a technical perspective, we discussed the general concept of software reuse and software reuse key technologies. Then discuss the general framework of the concept of the classification framework, and the frame multiplexing with other relevant comparison. In the framework of technology and design of object-oriented model detailed analysis and research, based on the framework developed by the traditional method of analysis, for the problem of the traditional bottom-up development of object-oriented framework approach long development cycle, the software can predict is poor, and the high development skills required, we led the design model into the framework of top-down development process, the proposed design pattern-based framework for self-items down development approach, speeding up the software development and improving the sharing of software code.The paper is based on C++object-oriented technology, and organizes the common property of plant roots to model class of plant roots. Use single linked list data structure to organize a plant root data structure class, and complete a root growth. Abstract base class for modeling data structures manipulated the data in class to complete the growth of the entire root topology system. According to the C++ object-oriented derived and inheritance mechanism. Special root was derived from the base model class. In pariticular root class, we need only to call the base class properties and methods to complete the specific work of modeling and simulation roots.Finally, in the specific simulation of plant roots, for example of carrot roots,we verified the applicability of the basis plant roots class libraries. Selecting the plant roots as a simulation object is the result of the carrot root swelling. It’s characteristics have some representation in the simulation of the plant roots. In the verification process, we proved that using object-oriented thinking to prepared plant roots libraries can have a good simulation code reusing and sharing, increase the speed of software development, and rapidly get the result of the simulation of plant roots.