[1294] | 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> |
---|
[1398] | 19 | * the instance of an {@link IOptional}. The instance may have a child being an |
---|
[1413] | 20 | * instance of the task marked by the optional of which this is an instance. If this instance |
---|
[1398] | 21 | * does not have a child, the optional child task was not executed. |
---|
[1294] | 22 | * </p> |
---|
| 23 | * |
---|
| 24 | * @author Patrick Harms |
---|
| 25 | */ |
---|
| 26 | public interface IOptionalInstance extends ITaskInstance { |
---|
| 27 | |
---|
| 28 | /** |
---|
| 29 | * <p> |
---|
[1398] | 30 | * returns the child of the optional of null if the optional was not executed |
---|
[1294] | 31 | * </p> |
---|
| 32 | * |
---|
| 33 | * @return as described |
---|
| 34 | */ |
---|
| 35 | public ITaskInstance getChild(); |
---|
| 36 | |
---|
| 37 | /** |
---|
| 38 | * <p> |
---|
| 39 | * returns the task related to the instance, i.e. the optional. |
---|
| 40 | * </p> |
---|
| 41 | * |
---|
| 42 | * @return as described |
---|
| 43 | */ |
---|
| 44 | public IOptional getOptional(); |
---|
| 45 | |
---|
| 46 | /** |
---|
| 47 | * <p> |
---|
| 48 | * clones this task instance by creating exact clones of each contained instance |
---|
| 49 | * </p> |
---|
| 50 | * |
---|
| 51 | * @return a clone of the task instance |
---|
| 52 | */ |
---|
| 53 | public IOptionalInstance clone(); |
---|
| 54 | |
---|
| 55 | } |
---|