[1405] | 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 | /**
|
---|
| 19 | * <p>
|
---|
| 20 | * This is an implementation of the visitor pattern. Through this, it is possible to effectively
|
---|
| 21 | * 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 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 the iteration instance to be processed
|
---|
| 43 | */
|
---|
| 44 | public void visit(IIterationInstance iterationInstance);
|
---|
| 45 |
|
---|
| 46 | /**
|
---|
| 47 | * <p>
|
---|
| 48 | * method called for each visited optional instance.
|
---|
| 49 | * </p>
|
---|
| 50 | *
|
---|
| 51 | * @param optionalInstance the optional instance to be processed
|
---|
| 52 | */
|
---|
| 53 | public void visit(IOptionalInstance optionalInstance);
|
---|
| 54 |
|
---|
| 55 | /**
|
---|
| 56 | * <p>
|
---|
| 57 | * method called for each visited selection instance.
|
---|
| 58 | * </p>
|
---|
| 59 | *
|
---|
| 60 | * @param selectionInstance the selection instance to be processed
|
---|
| 61 | */
|
---|
| 62 | public void visit(ISelectionInstance selectionInstance);
|
---|
| 63 |
|
---|
| 64 | /**
|
---|
| 65 | * <p>
|
---|
| 66 | * method called for each visited sequence instance.
|
---|
| 67 | * </p>
|
---|
| 68 | *
|
---|
| 69 | * @param sequenceInstance the sequence instance to be processed
|
---|
| 70 | */
|
---|
| 71 | public void visit(ISequenceInstance sequenceInstance);
|
---|
| 72 |
|
---|
| 73 | /**
|
---|
| 74 | * <p>
|
---|
| 75 | * method called for each other kind of visited task instance (implemented to support future
|
---|
| 76 | * versions).
|
---|
| 77 | * </p>
|
---|
| 78 | *
|
---|
| 79 | * @param taskInstance the task instance to be processed
|
---|
| 80 | */
|
---|
| 81 | public void visit(ITaskInstance taskInstance);
|
---|
| 82 |
|
---|
| 83 | }
|
---|