Changeset 1217 for trunk/autoquest-core-usability-evaluation/src/main/java/de/ugoe/cs/autoquest/usability/util/PatternsVisitorUtil.java
- Timestamp:
- 06/06/13 17:08:25 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-usability-evaluation/src/main/java/de/ugoe/cs/autoquest/usability/util/PatternsVisitorUtil.java
r1164 r1217 15 15 package de.ugoe.cs.autoquest.usability.util; 16 16 17 import java.util. List;17 import java.util.Collection; 18 18 19 19 import com.google.common.collect.Iterables; 20 20 21 21 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITask; 22 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskModel; 23 import de.ugoe.cs.autoquest.tasktrees.treeifc.IUserSession; 24 import de.ugoe.cs.autoquest.tasktrees.treeimpl.TaskFactory; 22 import de.ugoe.cs.autoquest.usability.rules.patterns.InteractionPatternVisitor; 25 23 26 24 /** 27 25 * <p> 28 * TODO comment26 * Util class for {@link InteractionPatternVisitor}. 29 27 * </p> 30 28 * … … 36 34 // no instantiation 37 35 } 38 36 39 37 /** 40 38 * <p> 41 * TODO: comment39 * Gets the first sub task. 42 40 * </p> 43 * 44 * @param taskTreeNode 45 * @return 41 * 42 * @param tasks 43 * collection of tasks 44 * @return first sub task 46 45 */ 47 public static ITaskModel createTaskModelFromUserSessions(List<IUserSession> userSessions) { 48 return new TaskFactory().createTaskModel(userSessions); 49 } 50 51 /** 52 * <p> 53 * TODO: comment 54 * </p> 55 * 56 * @param taskTreeNodes 57 * @return 58 */ 59 public static ITask firstNodeOf(List<ITask> tasks) { 46 public static ITask firstSubtaskOf(Collection<ITask> tasks) { 60 47 return Iterables.getFirst(tasks, new NullTask()); 61 48 } … … 63 50 /** 64 51 * <p> 65 * TODO: comment52 * Gets the last sub task. 66 53 * </p> 67 * 68 * @param taskTreeNodes 69 * @return 54 * 55 * @param tasks 56 * collection of tasks 57 * @return last sub task 70 58 */ 71 public static ITask last NodeOf(List<ITask> tasks) {59 public static ITask lastSubTaskOf(Collection<ITask> tasks) { 72 60 return Iterables.getLast(tasks, new NullTask()); 73 61 } 74 62 75 63 }
Note: See TracChangeset
for help on using the changeset viewer.