source: branches/autoquest-core-tasktrees-alignment/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeifc/ITaskVisitor.java @ 1733

Last change on this file since 1733 was 1733, checked in by rkrimmel, 10 years ago

Used Eclipse code cleanup

  • 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.tasktrees.treeifc;
16
17/**
18 * <p>
19 * This is an implementation of the visitor pattern. Through this, it is
20 * possible to effectively process a task model.
21 * </p>
22 *
23 * @author Alexander Deicke
24 */
25public interface ITaskVisitor {
26
27        /**
28         * <p>
29         * method called for each visited event task.
30         * </p>
31         *
32         * @param eventTask
33         *            the event task to be processed
34         */
35        public void visit(IEventTask eventTask);
36
37        /**
38         * <p>
39         * method called for each visited iteration.
40         * </p>
41         *
42         * @param iteration
43         *            the iteration to be processed
44         */
45        public void visit(IIteration iteration);
46
47        /**
48         * <p>
49         * method called for each visited optional.
50         * </p>
51         *
52         * @param optional
53         *            the optional to be processed
54         */
55        public void visit(IOptional optional);
56
57        /**
58         * <p>
59         * method called for each visited selection.
60         * </p>
61         *
62         * @param selection
63         *            the selection to be processed
64         */
65        public void visit(ISelection selection);
66
67        /**
68         * <p>
69         * method called for each visited sequence.
70         * </p>
71         *
72         * @param sequence
73         *            the sequence to be processed
74         */
75        public void visit(ISequence sequence);
76
77        /**
78         * <p>
79         * method called for each other kind of visited task (implemented to support
80         * future versions).
81         * </p>
82         *
83         * @param task
84         *            the task to be processed
85         */
86        public void visit(ITask task);
87
88}
Note: See TracBrowser for help on using the repository browser.