摘要
针对当前电力故障录波分析软件中由于缺少undo(撤销)功能而导致的人机交互性能差和分析效率低的问题,通过把通道图形对象和通道录波数据间的关系由包含改造为相识,使得算法在设计上避免了内存使用量和效率上的瓶颈。阐述了算法中基于属性包的数据结构及其简化容器定义的技术,引入行为型设计模式COMMAND以降低程序设计中的耦合度和复杂度,其中专门论述了COMMAND模式中Client(客户端触发器)和Receiver(接收器)之间复杂的调用关系,并且给出了使用2个栈(RedoStack和UndoStack)实现undo算法的详细步骤及其类接口。使用该算法实现了各种波形控制操作的undo机制,用户可同时在多个显示状态间进行直接切换。
Aiming at the low analysis efficiency and bad MMI in current fault record analysis software without undo function,the relationship between channel graphic object and channel record data is changed from CONTAINMENT to ACQUAINTANCE to avoid the efficiency bottleneck of memory usage in software design. The data structure based on property package and the technique of simplified container definition are expatiated. By introducing the behavioral design pattern COMMMAND,the complexity and coupling depth in program design are lowered. The complicated CALL relationship between Client and Receiver in COMMAND mode is especially discussed,and the detailed implementation steps of undo algorithm with two stacks(RedoStack and UndoStack) and its CLASS interfaces are given. By using the proposed algorithm,the undo mechanism for all wave controls are realized,and different display states can thus be directly switched over.
出处
《电力自动化设备》
EI
CSCD
北大核心
2007年第9期35-39,共5页
Electric Power Automation Equipment
关键词
故障分析
故障录波
设计模式
fault analysis
fault record
design patterns