source: xssim/trunk/src/schedframe/scheduling/JobInterface.java @ 104

Revision 104, 1.0 KB checked in by wojtekp, 13 years ago (diff)
  • Property svn:mime-type set to text/plain
Line 
1package schedframe.scheduling;
2
3import java.util.List;
4
5import schedframe.scheduling.utils.DescriptionContainer;
6import test.rewolucja.GSSIMJobInterface;
7
8
9/**
10 *
11 * @author Marcin Krystek
12 *
13 */
14public interface JobInterface<T> extends GSSIMJobInterface<T> {
15
16        /**
17         *
18         * @return job identifier
19         * @throws NoSuchFieldException if there is no tasks for this job, and job id can not be obtained
20         */
21        public abstract String getId() throws NoSuchFieldException;
22       
23        /**
24         *
25         * @return list of tasks which belongs to this job
26         */
27        public abstract List<? extends TaskInterface<?>> getTask();
28       
29        /**
30         *
31         * @param taskId
32         * @return task with specified taskId
33         * @throws NoSuchFieldException if task with taskId does not exist in this job
34         */
35        public abstract TaskInterface<?> getTask(String taskId) throws NoSuchFieldException;
36       
37        /**
38         *
39         * @return number of tasks in this job
40         */
41        public abstract int getTaskCount();
42       
43        /**
44         *
45         * @return constant which represents current status of this job
46         */
47        public int getStatus();
48       
49        public int getUserID();
50}
Note: See TracBrowser for help on using the repository browser.