source: trunk/autoquest-core-usability-evaluation/src/main/java/de/ugoe/cs/autoquest/usability/rules/patterns/visitors/StartsWithEventVisitor.java @ 1204

Last change on this file since 1204 was 1204, checked in by adeicke, 11 years ago

Renaming from UsagePattern? to InteractionPattern?.

  • Property svn:mime-type set to text/plain
File size: 2.1 KB
Line 
1//   Copyright 2012 Georg-August-Universität Göttingen, Germany
2//
3//   Licensed under the Apache License, Version 2.0 (the "License");
4//   you may not use this file except in compliance with the License.
5//   You may obtain a copy of the License at
6//
7//       http://www.apache.org/licenses/LICENSE-2.0
8//
9//   Unless required by applicable law or agreed to in writing, software
10//   distributed under the License is distributed on an "AS IS" BASIS,
11//   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12//   See the License for the specific language governing permissions and
13//   limitations under the License.
14
15package de.ugoe.cs.autoquest.usability.rules.patterns.visitors;
16
17import de.ugoe.cs.autoquest.tasktrees.treeifc.IIteration;
18import de.ugoe.cs.autoquest.tasktrees.treeifc.ISequence;
19import de.ugoe.cs.autoquest.usability.rules.patterns.InteractionPatternVisitor;
20import de.ugoe.cs.autoquest.usability.tasktree.filters.EventTypeFilter;
21import de.ugoe.cs.autoquest.usability.tasktree.filters.TaskTypeFilter;
22import de.ugoe.cs.autoquest.usability.util.PatternsVisitorUtil;
23
24/**
25 * <p>
26 * TODO comment
27 * </p>
28 *
29 * @author Alexander Deicke
30 */
31public class StartsWithEventVisitor extends InteractionPatternVisitor {
32
33    /**
34     * <p>
35     * TODO: comment
36     * </p>
37     *
38     * @param eventType
39     */
40    public StartsWithEventVisitor(EventTypeFilter eventType, TaskTypeFilter taskType) {
41        this.eventType = eventType;
42        this.taskType = taskType;
43    }
44
45    /* (non-Javadoc)
46     * @see de.ugoe.cs.autoquest.tasktrees.treeifc.NodeVisitor#visit(de.ugoe.cs.autoquest.tasktrees.treeifc.IIteration)
47     */
48    public void visit(IIteration iteration) {
49        iteration.getMarkedTask().accept(this);
50    }
51   
52    /* (non-Javadoc)
53     * @see de.ugoe.cs.autoquest.tasktrees.treeifc.NodeVisitor#visit(de.ugoe.cs.autoquest.tasktrees.treeifc.ISequence)
54     */
55    public void visit(ISequence sequence) {
56        PatternsVisitorUtil.firstNodeOf(sequence.getChildren()).accept(this);   
57    }
58   
59}
Note: See TracBrowser for help on using the repository browser.