摘 要: 传统继电保护装置的功能主要由开发人员直接编写程序,开发工作量大,维护成本高,需要提高开发效 率,为此开发了基于组件化、图形化配置软件。本文介绍了该软件的组件开发架构,架构由主框架、组件库、事件总 线、主程序组成。主程序读取组件配置文件,加载和创建相关组件对象,组件对应的主窗体放置在主框架的界面容器 内。组件之间需要协同配合时,通过发送和响应预定义的事件实现。在继电保护配置软件中应用了该组件架构,降低了 模块间的耦合关系,提高了软件可扩展能力和开发集成效率。 |
关键词: 组件;主框架;事件总线;继电保护软件 |
中图分类号: TP31
文献标识码: A
|
|
Component Structure and Its Application in Configuration Software for Relay Protection |
HE Min,CHEN Hongjun1,2
|
1.( 1.State Grid Electric Power Research Institute, Nanjing 211106, China;2. 2.NR Electric Co., Ltd, Nanjing 211102, China)
|
Abstract: To solve the problem of massive work and high maintenance cost raised by writing source code manually in traditional development of relay protection device,the paper introduces a modular and graphical configuration software which adopts component architecture.The architecture is composed of mainframe,component library,event bus and master program. The master program reads component configuration file to load and create corresponding component objects while main window of each component will be displayed in interface container of the mainframe.The components cooperate with each other by sending and answering predefined events.Application of the component architecture in configuration software for relay protection reduces coupling relationship between various components,while increasing software expansion capability as well as developing and integrating efficiency |
Keywords: component;mainframe;explorer;event bus;software for relay protection |