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.tasktrees.treeifc;
|
---|
16 |
|
---|
17 | // TODO: Auto-generated Javadoc
|
---|
18 | /**
|
---|
19 | * <p>
|
---|
20 | * This is an implementation of the visitor pattern. Through this, it is
|
---|
21 | * possible to effectively process a task instance tree.
|
---|
22 | * </p>
|
---|
23 | *
|
---|
24 | * @author Patrick Harms
|
---|
25 | */
|
---|
26 | public interface ITaskInstanceVisitor {
|
---|
27 |
|
---|
28 | /**
|
---|
29 | * <p>
|
---|
30 | * method called for each visited event task instance.
|
---|
31 | * </p>
|
---|
32 | *
|
---|
33 | * @param eventTaskInstance
|
---|
34 | * the event task instance to be processed
|
---|
35 | */
|
---|
36 | public void visit(IEventTaskInstance eventTaskInstance);
|
---|
37 |
|
---|
38 | /**
|
---|
39 | * <p>
|
---|
40 | * method called for each visited iteration instance.
|
---|
41 | * </p>
|
---|
42 | *
|
---|
43 | * @param iterationInstance
|
---|
44 | * the iteration instance to be processed
|
---|
45 | */
|
---|
46 | public void visit(IIterationInstance iterationInstance);
|
---|
47 |
|
---|
48 | /**
|
---|
49 | * <p>
|
---|
50 | * method called for each visited optional instance.
|
---|
51 | * </p>
|
---|
52 | *
|
---|
53 | * @param optionalInstance
|
---|
54 | * the optional instance to be processed
|
---|
55 | */
|
---|
56 | public void visit(IOptionalInstance optionalInstance);
|
---|
57 |
|
---|
58 | /**
|
---|
59 | * <p>
|
---|
60 | * method called for each visited selection instance.
|
---|
61 | * </p>
|
---|
62 | *
|
---|
63 | * @param selectionInstance
|
---|
64 | * the selection instance to be processed
|
---|
65 | */
|
---|
66 | public void visit(ISelectionInstance selectionInstance);
|
---|
67 |
|
---|
68 | /**
|
---|
69 | * <p>
|
---|
70 | * method called for each visited sequence instance.
|
---|
71 | * </p>
|
---|
72 | *
|
---|
73 | * @param sequenceInstance
|
---|
74 | * the sequence instance to be processed
|
---|
75 | */
|
---|
76 | public void visit(ISequenceInstance sequenceInstance);
|
---|
77 |
|
---|
78 | /**
|
---|
79 | * <p>
|
---|
80 | * method called for each other kind of visited task instance (implemented
|
---|
81 | * to support future versions).
|
---|
82 | * </p>
|
---|
83 | *
|
---|
84 | * @param taskInstance
|
---|
85 | * the task instance to be processed
|
---|
86 | */
|
---|
87 | public void visit(ITaskInstance taskInstance);
|
---|
88 |
|
---|
89 | }
|
---|