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 | import java.io.Serializable; |
---|
18 | |
---|
19 | /** |
---|
20 | * <p> |
---|
21 | * represents a serializable and iterable representation of a read only list of |
---|
22 | * task instances. The list is ordered. It does not provide methods for changing |
---|
23 | * it. |
---|
24 | * </p> |
---|
25 | * |
---|
26 | * @author Patrick Harms |
---|
27 | */ |
---|
28 | public interface ITaskInstanceList extends Cloneable, Serializable, |
---|
29 | Iterable<ITaskInstance> { |
---|
30 | |
---|
31 | /** |
---|
32 | * <p> |
---|
33 | * returns the task instance at the position with the given index. May throw |
---|
34 | * an exception if the index is invalid. |
---|
35 | * </p> |
---|
36 | * |
---|
37 | * @param index |
---|
38 | * the index of the task instance to be returned |
---|
39 | * |
---|
40 | * @return the task instance at the given index |
---|
41 | */ |
---|
42 | public ITaskInstance get(int index); |
---|
43 | |
---|
44 | /** |
---|
45 | * <p> |
---|
46 | * returns the size of the list, i.e. the number of task instances in the |
---|
47 | * list |
---|
48 | * </p> |
---|
49 | * |
---|
50 | * @return as described |
---|
51 | */ |
---|
52 | public int size(); |
---|
53 | |
---|
54 | } |
---|