Changeset 414


Ignore:
Timestamp:
04/03/12 10:55:55 (12 years ago)
Author:
sherbold
Message:
  • added special case to de.ugoe.cs.eventbench.windows.SequenceSplitter? that enable the splitter to ignore to consecutive WM_LBUTTONDOWN messages in the log. Such a sequence is usually faulty and the result of incorrect filtering of duplicate messages in the monitoring dll.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/windows/SequenceSplitter.java

    r297 r414  
    6161        /** 
    6262         * <p> 
     63         * Type of the previous message. 
     64         * </p> 
     65         */ 
     66        private int prevMsg = 0; 
     67 
     68        /** 
     69         * <p> 
    6370         * Constructor. Creates a new SequenceSplitter. 
    6471         * </p> 
     
    7077                tokenGenerator = new EventGenerator(); 
    7178                actionSequence = new LinkedList<WindowsEvent>(); 
     79                prevMsg = 0; 
    7280        } 
    7381 
     
    101109                        } 
    102110                } 
    103                 currentSequence.add(msg); 
     111 
     112                // this fix checks if there are two consecutive mouse-down messages. 
     113                // This sometimes occurs due to incorrect filtering in the monitoring 
     114                // dll. 
     115                if (!(prevMsg == MessageDefs.WM_LBUTTONDOWN && prevMsg == msg.getType())) { 
     116                        currentSequence.add(msg); 
     117                } else { 
     118                        openDowns--; 
     119                } 
     120                prevMsg = msg.getType(); 
    104121        } 
    105122 
Note: See TracChangeset for help on using the changeset viewer.