Ignore:
Timestamp:
11/21/12 10:09:02 (12 years ago)
Author:
fglaser
Message:
  • added event timestamp handling for JFCMonitor and JFCSimplifiedLogParser
  • jfc log files now contain event timestamp as param child of event element
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc/JFCSimplifiedLogParser.java

    r990 r1001  
    9090    /** 
    9191     * <p> 
    92      * Internal handle to the parameters of the event that is currently being parsed. 
     92     * Internal handle to the source of the event that is currently being parsed. 
    9393     * </p> 
    9494     */ 
    9595    private Integer currentEventSource; 
     96     
     97    /** 
     98     * <p> 
     99     * Internal handle to the timestamp of the event that is currently being parsed. 
     100     */ 
     101    private Long currentEventTimestamp = -1l; 
    96102      
    97103    /** 
     
    335341                        if ("source".equals(atts.getValue("name"))){ 
    336342                                currentEventSource = (int) Long.parseLong(atts.getValue("value"), 16); 
     343                        } 
     344                        if ("timestamp".equals(atts.getValue("name"))){ 
     345                                currentEventTimestamp = Long.parseLong(atts.getValue("value")); 
    337346                        } 
    338347                currentEventParameters.put(atts.getValue("name"), atts.getValue("value")); 
     
    397406                    (instantiateInteraction(currentEventId, currentEventParameters), 
    398407                     (currentGUIElement == null ? lastGUIElement : currentGUIElement)); 
     408                event.setTimestamp(currentEventTimestamp); 
    399409                 
    400410                currentSequence.add(event); 
     
    402412                currentEventParameters = null; 
    403413                currentEventId = null; 
     414                currentEventTimestamp = -1l; 
    404415                 
    405416                if (currentGUIElement != null) { 
Note: See TracChangeset for help on using the changeset viewer.