为了实现软件系统的柔性扩展、提高动态性和可扩展性等等,提出一种可扩展的电网开关估计规则引擎,以实现程序运行时增加、删除、修改开关估计的规则.设计中运用了Java开闭思想和反射机制,使引擎开关估计规则的设计与应用功能的进行解耦,增强了电网开关估计规则的可扩展性.
In order to achieve a flexible software system expansion, improve dynamics and scalability, etc, an extended engine to estimate the rule of power switch is proposed, and deleting, inserting and modifying estimation rules of the switch is permitted while the program is executing. The Open-Closed Principle and Java Reflection Mechanism are introduced into the design of the engine. Rule of switch es- timation is set by the configuration profile which can be allocated by users. The capability of the switch to load the rules, discovery and self-examination can be achieved by importing the reflection mechanism to configuration files. The scalability of the rules in power switch estimation is enhanced by decoupling the design of switch rules and the achievement of application in the structure of the engine.