Changeset 1293 for trunk/autoquest-core-usability-evaluation/src/main/java/de/ugoe/cs/autoquest/usability/rules/patterns/InteractionPatternBuilder.java
- Timestamp:
- 08/10/13 10:26:53 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-usability-evaluation/src/main/java/de/ugoe/cs/autoquest/usability/rules/patterns/InteractionPatternBuilder.java
r1217 r1293 25 25 import de.ugoe.cs.autoquest.usability.rules.patterns.visitors.StartsWithEventVisitor; 26 26 import de.ugoe.cs.autoquest.usability.rules.patterns.visitors.StartsWithInteractionPatternVisitor; 27 import de.ugoe.cs.autoquest.usability.taskmodel.filter.types.EventTargetFilter; 27 28 import de.ugoe.cs.autoquest.usability.taskmodel.filter.types.EventTypeFilter; 28 29 import de.ugoe.cs.autoquest.usability.taskmodel.filter.types.TaskTypeFilter; … … 36 37 */ 37 38 public class InteractionPatternBuilder { 38 39 /**40 * <p>41 * Type of root task. Determines the order in which sub task appear.42 * </p>43 */44 protected TaskTypeFilter rootTask;45 46 /**47 * <p>48 * Interaction pattern starts with event.49 * </p>50 */51 protected EventTypeFilter startsWithEvent;52 53 /**54 * <p>55 * Interaction pattern starts with interaction pattern.56 * </p>57 */58 protected InteractionPattern startsWithPattern;59 60 /**61 * <p>62 * Interaction pattern ends with event.63 * </p>64 */65 protected EventTypeFilter endsWithEvent;66 67 /**68 * <p>69 * Interaction pattern ends with interaction pattern.70 * </p>71 */72 protected InteractionPattern endsWithPattern;73 74 /**75 * <p>76 * Interaction pattern contains certain event.77 * </p>78 */79 protected EventTypeFilter containsEvent;80 81 /**82 * <p>83 * Interaction pattern contains certain interaction pattern.84 * </p>85 */86 protected InteractionPattern containsPattern;87 39 88 40 /** … … 107 59 108 60 public StartsWithStep startsWithEvent(EventTypeFilter startsWithEventType); 61 62 public StartsWithStep startsWithEvent(EventTypeFilter startsWithEventType, EventTargetFilter eventTarget); 109 63 110 64 public StartsWithStep startsWithPattern(InteractionPattern endsWithPattern); 111 65 112 66 public ContainsStep containsEvent(EventTypeFilter containsEventType); 67 68 public ContainsStep containsEvent(EventTypeFilter containsEventType, EventTargetFilter eventTarget); 113 69 114 70 public ContainsStep containsPattern(InteractionPattern containsPattern); 115 71 116 72 public EndsWithStep endsWithEvent(EventTypeFilter endsWithEventType); 73 74 public EndsWithStep endsWithEvent(EventTypeFilter endsWithEventType, EventTargetFilter eventTarget); 117 75 118 76 public EndsWithStep endsWithPattern(InteractionPattern endsPattern); … … 125 83 126 84 public ContainsStep containsEvent(EventTypeFilter containsEventType); 85 86 public ContainsStep containsEvent(EventTypeFilter containsEventType, EventTargetFilter eventTarget); 127 87 128 88 public ContainsStep containsPattern(InteractionPattern containsPattern); 129 89 130 90 public EndsWithStep endsWithEvent(EventTypeFilter endsWithEventType); 91 92 public EndsWithStep endsWithEvent(EventTypeFilter endsWithEventType, EventTargetFilter eventTarget); 131 93 132 94 public EndsWithStep endsWithPattern(InteractionPattern endsPattern); … … 138 100 public static interface ContainsStep { 139 101 140 public ContainsStep containsEvent(EventTypeFilter containsEventType);141 142 public ContainsStep containsPattern(InteractionPattern containsPattern);143 144 102 public EndsWithStep endsWithEvent(EventTypeFilter endsWithEventType); 103 104 public EndsWithStep endsWithEvent(EventTypeFilter endsWithEventType, EventTargetFilter eventTarget); 145 105 146 106 public EndsWithStep endsWithPattern(InteractionPattern endsPattern); … … 180 140 return this; 181 141 } 142 143 @Override 144 public StartsWithStep startsWithEvent( 145 EventTypeFilter startsWithEventType, 146 EventTargetFilter startsWithEventTarget) { 147 this.visitors.add(new StartsWithEventVisitor(startsWithEventType, startsWithEventTarget, concernedNode)); 148 return this; 149 } 182 150 183 151 @Override … … 194 162 } 195 163 164 @Override 165 public ContainsStep containsEvent(EventTypeFilter containsEventType, 166 EventTargetFilter containsEventTarget) { 167 this.visitors.add(new ContainsEventVisitor(containsEventType, containsEventTarget ,concernedNode)); 168 return this; 169 } 170 196 171 @Override 197 172 public ContainsStep containsPattern(InteractionPattern containsPattern) { … … 206 181 return this; 207 182 } 183 184 @Override 185 public EndsWithStep endsWithEvent(EventTypeFilter endsWithEventType, 186 EventTargetFilter endsWithEventTarget) { 187 this.visitors.add(new EndsWithEventVisitor(endsWithEventType, endsWithEventTarget ,concernedNode)); 188 return this; 189 } 208 190 209 191 @Override
Note: See TracChangeset
for help on using the changeset viewer.