针对复杂实时大系统分布式交互性特点,通过综合对比UML与HLA的特点,提出了基于UML—HLA的列控系统建模仿真方法。在传统建模方法的基础上,采用提出的UML—HLA建模方法,从多个不同的角度建立多车仿真系统的分析模型,包括用例建模、活动建模、结构建模、交互建模和状态建模等,构建起高层体系架构资源库。在分析模型的基础上,建立多车仿真系统体系结构,得到多车仿真系统的设计模型。从性能和功能上对多车仿真系统进行了仿真验证。仿真结果表明:基于UML—HLA的建模方法具有较强的可交互性和可操作性,通过对原有线程机制与定时器控制机制进行优化,采用线程管理机制将原有系统的CPU占有率由50%降低至15%以下,定时器误差控制在0.02ms范围内,满足了列控系统的仿真要求。
Aimed at the distributed and interactive properties of complex real time large system, through a comprehensive comparison of unified modeling language (UML) and high level architecture(HLA) features, a modeling and simulating method of train control system was proposed based on high level architecture with unified modeling language (UML HLA). On the basis of traditional modeling method, an analysis model of multi-train simulation system was constructed from different perspectives by using UML-HLA modeling method. The model consisted of use case modeling, activity modeling, structural modeling, interactive modeling and state based modeling, and the high level architecture resource library was constructed. Based on the analysis model, a multi-train simulation system structure was established, and a design model of multi-train simulation system was obtained finally. The functions and performances of multi- train simulation system were validated. Simulation result shows that the modeling method based on UML HLA has strong interactivity and maneuverability. With the optimization of original thread management mechanism and timer control mechanism, the CPU occupancy of original system reduces from 50% to below 15% by using thread management method, the timer error in the system is below 0.02 ms, 1 tab, 10 figs, 16 refs.