论文部分内容阅读
该文提出概念化水资源系统模拟的面向对象设计方法,对概化元素属性及其在水循环过程中的功能进行描述,从而将系统划分为相互关联的功能模块。通过对系统基本元素的划分和功能的归纳,设计了相应的类及其子类,并以水量运动和利用过程为基础建立了类之间的交互关系。不同模块的计算可以通过实例化后的类对象实现,并借助主控程序完成系统的整体模拟,实现了模块间分层次的耦合。以该设计方法构建的模型对海南岛水资源配置进行模拟计算,得出了不同方案的水资源供需态势和水量平衡变化趋势,检验了其有效性和可行性。
This paper presents an object-oriented design method of conceptualized water resources system simulation, which describes the attributes of generalized elements and their functions during the water cycle, and divides the system into interrelated functional modules. Through the division of the basic elements of the system and the generalization of its functions, the corresponding classes and subclasses are designed. Based on the process of water movement and utilization, the interaction between classes is established. The calculation of different modules can be achieved through the instantiation of the class object, and with the help of the master program to complete the overall simulation of the system to achieve a hierarchical coupling between modules. The model constructed by this design method is used to simulate the allocation of water resources in Hainan Island. The trend of supply and demand of water resources and water balance under different scenarios are obtained, and its validity and feasibility are tested.