source: branches/autoquest-core-tasktrees-alignment/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeifc/ITaskInstanceList.java @ 1733

Last change on this file since 1733 was 1733, checked in by rkrimmel, 10 years ago

Used Eclipse code cleanup

File size: 1.5 KB
Line 
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
15package de.ugoe.cs.autoquest.tasktrees.treeifc;
16
17import 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 */
28public 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}
Note: See TracBrowser for help on using the repository browser.