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