Changeset 2252 for trunk/autoquest-core-events
- Timestamp:
- 12/12/17 13:44:36 (7 years ago)
- Location:
- trunk/autoquest-core-events/src/main/java/de/ugoe/cs/autoquest/eventcore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-events/src/main/java/de/ugoe/cs/autoquest/eventcore/Event.java
r2218 r2252 16 16 17 17 import java.io.Serializable; 18 import java.util.Collections; 18 19 import java.util.HashMap; 19 20 import java.util.LinkedList; … … 307 308 } 308 309 } 310 311 /** 312 * <p> 313 * Returns a map containing the parameters attached to the event. It returns null, if there 314 * are no parameters. 315 * </p> 316 */ 317 public Map<String, String> getParameters() { 318 if (parameters == null) { 319 return null; 320 } 321 else { 322 return Collections.unmodifiableMap(parameters); 323 } 324 } 309 325 310 326 /** -
trunk/autoquest-core-events/src/main/java/de/ugoe/cs/autoquest/eventcore/gui/KeyInteractionTargetCorrector.java
r1432 r2252 17 17 import java.util.LinkedList; 18 18 import java.util.List; 19 import java.util.Map; 19 20 20 21 import de.ugoe.cs.autoquest.eventcore.Event; … … 67 68 nextEvent.setTimestamp(event.getTimestamp()); 68 69 69 // TODO copy event parameters 70 for (Map.Entry<String, String> parameter : event.getParameters().entrySet()) { 71 nextEvent.setParameter(parameter.getKey(), parameter.getValue()); 72 } 70 73 } 71 74 }
Note: See TracChangeset
for help on using the changeset viewer.