Memory algorithm of wave chart state in fault record analysis software
暂无分享,去创建一个
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.