引用本文: | 余存,黄利军,黄浩然,等.基于UML状态图和Qt状态机框架的
IEC104规约的分析与实现[J].电力系统保护与控制,2015,43(15):118-125.[点击复制] |
YU Cun,HUANG Lijun,HUANG Haoran,et al.Analysis and implementation of IEC 104 based on UML statechart and Qt state machine framework[J].Power System Protection and Control,2015,43(15):118-125[点击复制] |
|
摘要: |
为了提高软件的可维护性和可扩展性,降低规约开发的复杂度,基于统一建模语言(UML)的状态图理论对IEC 60870-5-104规约主站端进行了分析。抽象定义了动作、事件和状态,利用UML状态图分层和并发特性设计了规约逻辑状态图,并使用Qt的自动机框架进行了软件实现。结果表明,设计出的状态图层次结构分明,逻辑关系清晰,各功能模块间相互独立,而且降低了耦合度,编程实现简单明了,体现了这种方法的优越性,对其他复杂通信规约的开发也具有一定的参考价值。 |
关键词: IEC 60870-5-104 统一建模语言UML 状态图 有限状态机 Qt |
DOI:10.7667/j.issn.1674-3415.2015.15.019 |
投稿时间:2015-03-09修订日期:2015-04-29 |
基金项目: |
|
Analysis and implementation of IEC 104 based on UML statechart and Qt state machine framework |
YU Cun,HUANG Lijun,HUANG Haoran,SHEN Yanhong,ZHANG Rui,CUI Xiaoyou,JIA Shuaifeng |
(XJ HVDC Electric Power Transmission Company, Xuchang 461000, China) |
Abstract: |
In order to improve maintainability and expansibility of software, reduce the complexity of protocol development, based on the statechart theory of Unified Modeling Language (UML), this paper analyzes the master side of IEC 60870-5-104, abstracts and defines actions, events and states; designs the statecharts of protocol logic based on the hierarchy and parallel characteristics and implements the software using Qt state machine framework. The results show that the hierarchy structure of statecharts is distinct, the logic is clear, every function model is independent of each other, and the coupling is reduced; programming implementation using Qt state machine framework is easy, showing it is a good solution. This kind of analysis and implementation method has also good reference value to the development of other complex communication protocol. |
Key words: IEC 60870-5-104 Unified Modeling Language statechart finite-state machine Qt |