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

Revision 477, 973 bytes 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
5
6/**
7 *
8 * @author Marcin Krystek
9 *
10 */
11public interface JobInterface<T> extends WorkloadUnit<T> {
12
13        /**
14         *
15         * @return job identifier
16         * @throws NoSuchFieldException if there is no tasks for this job, and job id can not be obtained
17         */
18        //public abstract String getId() throws NoSuchFieldException;
19       
20        /**
21         *
22         * @return list of tasks which belongs to this job
23         */
24        public abstract List<? extends TaskInterface<?>> getTask();
25       
26        /**
27         *
28         * @param taskId
29         * @return task with specified taskId
30         * @throws NoSuchFieldException if task with taskId does not exist in this job
31         */
32        public abstract TaskInterface<?> getTask(String taskId) throws NoSuchFieldException;
33       
34        /**
35         *
36         * @return number of tasks in this job
37         */
38        public abstract int getTaskCount();
39       
40        /**
41         *
42         * @return constant which represents current status of this job
43         */
44        //public int getStatus();
45       
46        //public int getUserID();
47}
Note: See TracBrowser for help on using the repository browser.