Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-jfcmonitor/src/main/java/de/ugoe/cs/autoquest/jfcmonitor/JFCListener.java
r932 r1001 80 80 "\" />" + StringTools.ENDLINE); 81 81 addSourceInfo(builder, event); 82 addTimestampInfo(builder); 82 83 builder.append("</event>" + StringTools.ENDLINE); 83 84 } … … 92 93 "\" />" + StringTools.ENDLINE); 93 94 addSourceInfo(builder, event); 95 addTimestampInfo(builder); 94 96 builder.append("</event>" + StringTools.ENDLINE); 95 97 } … … 99 101 builder.append("<event id=\"" + event.getID() + "\">" + StringTools.ENDLINE); 100 102 addSourceInfo(builder, event); 103 addTimestampInfo(builder); 101 104 builder.append("</event>" + StringTools.ENDLINE); 102 105 } … … 125 128 builder.append(" />" + StringTools.ENDLINE); 126 129 } 130 131 /** 132 * <p> 133 * Appends timestamp information of the event to a {@link StringBuilder}. 134 * </p> 135 * 136 * @param builder 137 * {@link StringBuilder} where the information is appended 138 */ 139 private void addTimestampInfo(StringBuilder builder){ 140 long timestamp = System.currentTimeMillis(); 141 builder.append(" <param name=\"timestamp\""); 142 builder.append(" value=\"" + Long.toString(timestamp) + "\"/>"); 143 builder.append(StringTools.ENDLINE); 144 } 127 145 128 146 /** -
trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc/JFCSimplifiedLogParser.java
r990 r1001 90 90 /** 91 91 * <p> 92 * Internal handle to the parametersof the event that is currently being parsed.92 * Internal handle to the source of the event that is currently being parsed. 93 93 * </p> 94 94 */ 95 95 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; 96 102 97 103 /** … … 335 341 if ("source".equals(atts.getValue("name"))){ 336 342 currentEventSource = (int) Long.parseLong(atts.getValue("value"), 16); 343 } 344 if ("timestamp".equals(atts.getValue("name"))){ 345 currentEventTimestamp = Long.parseLong(atts.getValue("value")); 337 346 } 338 347 currentEventParameters.put(atts.getValue("name"), atts.getValue("value")); … … 397 406 (instantiateInteraction(currentEventId, currentEventParameters), 398 407 (currentGUIElement == null ? lastGUIElement : currentGUIElement)); 408 event.setTimestamp(currentEventTimestamp); 399 409 400 410 currentSequence.add(event); … … 402 412 currentEventParameters = null; 403 413 currentEventId = null; 414 currentEventTimestamp = -1l; 404 415 405 416 if (currentGUIElement != null) {
Note: See TracChangeset
for help on using the changeset viewer.