[1150] | 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 |
|
---|
| 15 | package de.ugoe.cs.autoquest.usability.rules.patterns.visitors;
|
---|
| 16 |
|
---|
| 17 | import de.ugoe.cs.autoquest.tasktrees.treeifc.IIteration;
|
---|
| 18 | import de.ugoe.cs.autoquest.tasktrees.treeifc.ISequence;
|
---|
[1204] | 19 | import de.ugoe.cs.autoquest.usability.rules.patterns.InteractionPatternVisitor;
|
---|
[1150] | 20 | import de.ugoe.cs.autoquest.usability.tasktree.filters.EventTypeFilter;
|
---|
[1204] | 21 | import de.ugoe.cs.autoquest.usability.tasktree.filters.TaskTypeFilter;
|
---|
[1150] | 22 | import de.ugoe.cs.autoquest.usability.util.PatternsVisitorUtil;
|
---|
| 23 |
|
---|
| 24 | /**
|
---|
| 25 | * <p>
|
---|
| 26 | * TODO comment
|
---|
| 27 | * </p>
|
---|
| 28 | *
|
---|
| 29 | * @author Alexander Deicke
|
---|
| 30 | */
|
---|
[1204] | 31 | public class EndsWithEventVisitor extends InteractionPatternVisitor {
|
---|
[1150] | 32 |
|
---|
| 33 | /**
|
---|
| 34 | * <p>
|
---|
| 35 | * TODO: comment
|
---|
| 36 | * </p>
|
---|
| 37 | *
|
---|
| 38 | * @param eventType
|
---|
| 39 | */
|
---|
[1204] | 40 | public EndsWithEventVisitor(EventTypeFilter eventType, TaskTypeFilter taskType) {
|
---|
[1150] | 41 | this.eventType = eventType;
|
---|
[1204] | 42 | this.taskType = taskType;
|
---|
[1150] | 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) {
|
---|
[1152] | 49 | iteration.getMarkedTask().accept(this);
|
---|
[1150] | 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.lastNodeOf(sequence.getChildren()).accept(this);
|
---|
| 57 | }
|
---|
| 58 |
|
---|
| 59 | }
|
---|