论文部分内容阅读
RiceGrowthModel(RGM)作为一个实例 ,为作物生长模型软件的设计提供了一个系统分解和系统组织的框架。利用面向对象的编程设计方法 ,将作物 环境系统抽象为多个子系统或生理过程 ,分别设计多个类 ,模拟这些子系统的功能。由于面向对象方法的封装性、继承性和多态性 ,类与类之间既相互独立 ,又通过类间接口彼此相互关联 ,使系统易于维护、扩充和重新开发利用。RGM又将VisualC ++的文档 -视结构扩展为模型 -文档 -视结构 ,为系统中类的组织 ,提供了框架结构。模型 文档 视中文档类 ,通过操纵模型类获取模拟的最终结果 ,并负责数据的管理 ,同时作为视类和模型类的通讯中介 ;视类显示文档的数据 ,并把用户的操作翻译成对文档类的操作。整个系统分工协作 ,类间进行有效的通讯 ,有机地组织为一个整体
As an example, RiceGrowthModel (RGM) provides a framework for system decomposition and system organization for the design of crop growth model software. Using the object-oriented programming design method, the crop environment system is abstracted into several subsystems or physiological processes, and multiple classes are designed respectively to simulate the functions of these subsystems. Due to the encapsulation, inheritance and polymorphism of object-oriented methods, the classes and classes are independent of each other and are interrelated with each other through inter-class interfaces, which makes the system easy to maintain, expand and redevelop. RGM again VisualC + + document - depending on the structure of the model as a - document - depending on the structure of the system for the organization, provides a framework structure. The model document regards the Chinese document class, obtains the simulation final result by manipulating the model class, and is responsible for the data management, at the same time as the communication class of the visual class and the model class; displays the document data as the class and translates the user’s operation into the document Class operation. The entire system division of labor collaboration, effective communication between classes, organized organically as a whole