为提高在线暂态安全预警系统的可复用性和可维护性,提出一套软件开发范式。该范式综合运用架构分析、设计模式、框架、单元测试等方法,提高了开发效率与软件质量。运用“分层模式”进行架构分析;利用“策略”模式解决了灵活改变动态元件模型的功能需求;构建了一套具有开放架构的分布式任务调度框架,为“安全预警与决策支持系统”中的功能提供全面支撑;采用“订阅/发布”模式设计了人机界面,方便系统配置的改变;采用“单元测试”方法确保软件质量。现场实践表明,基于该范式开发的系统易于维护且具有良好的扩展性。
To make the online transient early warning and security protecting system easy to reuse and maintain, a software development pattern is proposed. Several advanced methods, such as architecture analysis, design pattern, framework and unit testing, are used in this pattern to enhance the development efficiency and software quality. A layered architecture is introduced during the design process and a "strategy pattern" is used to adapt to the changing requirement for the dynamic model of the component concerned. An open framework for distributed task dispatching is also presented. A "subscriber/publisher" pattern is used to implement message exchange between the server and clients, which is adaptive to the hardware configuration changes. An online transient early warning and security protecting system based on the methods proposed has been developed and put into actual operation in a provincial power system.