摘要
RiceGrowthModel(RGM)作为一个实例 ,为作物生长模型软件的设计提供了一个系统分解和系统组织的框架。利用面向对象的编程设计方法 ,将作物 环境系统抽象为多个子系统或生理过程 ,分别设计多个类 ,模拟这些子系统的功能。由于面向对象方法的封装性、继承性和多态性 ,类与类之间既相互独立 ,又通过类间接口彼此相互关联 ,使系统易于维护、扩充和重新开发利用。RGM又将VisualC ++的文档 -视结构扩展为模型 -文档 -视结构 ,为系统中类的组织 ,提供了框架结构。模型 文档 视中文档类 ,通过操纵模型类获取模拟的最终结果 ,并负责数据的管理 ,同时作为视类和模型类的通讯中介 ;视类显示文档的数据 ,并把用户的操作翻译成对文档类的操作。整个系统分工协作 ,类间进行有效的通讯 。
Rice Growth Model (RGM) system represened an effort to design crop modeling software with object oriented paradigm and to organize classes of system in model document view architecture. Firstly, the crop environment system was abstracted as many subsystems and physiological processes with object oriented paradigm while many classes were established to simulate the behaviors of these subsystems and physiological processes. In VRGM, the document view architecture in Visual C++ was extended as model document view architecture for agricultural integrated system. In the model document view architecture, document gets the final simulation results by manipulating the models classes and acts as a communicating intermediacy between model and view. Views display the simulation results and translate users' operation and data into a document. The architecture separates the domain models, data management and user interface. Modelers can add classes in architectures to extend the system without having to change system structure, which is useful for construction and maintenance of agricultural models.
出处
《中国农业科学》
CAS
CSCD
北大核心
2002年第10期1197-1203,共7页
Scientia Agricultura Sinica
基金
国家"九五"攻关项目 (95 0 0 1 0 1)
农业科技跨越计划
湖南省自然科学基金资助项目 (0 1JJY2 0 3 3 )