摘要
针对国内现有的想定编辑管理软件中存在着通用性较差、可扩展困难等问题,构建了想定元素类管理模块,分析了模块实现时需要解决的关键问题,并比较了不同实现方法的难点与不足,提出了基于XML语言的实现方法。利用XML文档描述并存储元素类数据结构,用户可通过可视化的操作界面开发特定的想定实体结构,设计了XML解释器和通用的想定对象类及其实现函数,保证想定编辑过程中正常地动态实例化元素类。实践表明利用实现的模块可以较好地满足软件系统对可扩展性和通用性的要求,具有较强的借鉴意义。
To solve the problems of the exiting software for editing and managing simulation scenario such as its poor expansibility and commonality,the paper constructs a module for the management of scenario element classes.By analyzing some key problems needing to be solved and comparing the difficulty and defect of different approaches for implementing the module,the paper puts forward a XML-based method to implement the module.The XML document is used to describe and store the data structure of element classes,and the users can develop special structure of scenario entities through the visual operational interface.The paper implements a XML-parser and a current scenario object class and its implementation function,and they normally assure the dynamic instantiation of element class.The practice,proves that the module realized by the XML-based method can commendably meet the requirement of the software for the expansibility and commonality,and it can be used as reference.
出处
《计算机仿真》
CSCD
2008年第7期28-32,共5页
Computer Simulation
关键词
可扩展标记语言
想定
元素
管理
实现方法
Extensible markup language(XML)
Scenario
Element
Management
Implementation method