Ignore:
Timestamp:
04/03/12 10:51:34 (13 years ago)
Author:
sherbold
Message:
  • changed equals method of de.ugoe.cs.eventbench.windows.data.WindowsEvent? to be able to better identify equal widgets throughout multiple sessions. To this aim, the class de.ugoe.cs.eventbench.windows.data.MFCTargetComparator has been introduced to compare the target strings of WindowsEvents?.
  • changed parseXML to set up the MFCTargetComparator
File:
1 edited

Legend:

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

    r297 r413  
    99import de.ugoe.cs.eventbench.data.GlobalDataContainer; 
    1010import de.ugoe.cs.eventbench.windows.MFCLogParser; 
     11import de.ugoe.cs.eventbench.windows.data.MFCTargetComparator; 
    1112import de.ugoe.cs.eventbench.windows.data.WindowTree; 
    1213import de.ugoe.cs.eventbench.windows.data.WindowsEvent; 
     
    6364 
    6465                Collection<List<WindowsEvent>> sequences = parser.getSequences(); 
     66                 
     67                Console.traceln("Pre-computing event target equalities."); 
     68                // compare all Events to a dummy event to make sure they are known by 
     69                // the MFCTargetComparator 
     70                WindowsEvent dummyEvent = new WindowsEvent("dummy"); 
     71                for (List<WindowsEvent> sequence : sequences) { 
     72                        for (WindowsEvent event : sequence) { 
     73                                event.equals(dummyEvent); 
     74                        } 
     75                } 
     76                MFCTargetComparator.setMutable(false); 
     77                 
    6578                SortedSet<String> targets = WindowTree.getInstance().getTargets(); 
    6679 
Note: See TracChangeset for help on using the changeset viewer.