Revision 478,
1.0 KB
checked in by wojtekp, 13 years ago
(diff) |
|
-
Property svn:mime-type set to
text/plain
|
Rev | Line | |
---|
[477] | 1 | package schedframe.scheduling.tasks; |
---|
| 2 | |
---|
| 3 | import java.util.List; |
---|
| 4 | |
---|
[478] | 5 | import schedframe.DescriptionContainer; |
---|
[477] | 6 | |
---|
[478] | 7 | |
---|
[477] | 8 | /** |
---|
| 9 | * |
---|
| 10 | * @author Marcin Krystek |
---|
| 11 | * |
---|
| 12 | */ |
---|
[478] | 13 | public interface JobInterface<T> extends WorkloadUnit, DescriptionContainer<T> { |
---|
[477] | 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.