source: DCWoRMS/trunk/src/schedframe/scheduling/tasks/JobInterface.java @ 478

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