[104] | 1 | package schedframe.scheduling.plan; |
---|
| 2 | |
---|
| 3 | import schedframe.scheduling.utils.DescriptionContainer; |
---|
| 4 | |
---|
| 5 | public interface ScheduledTaskInterface<T> extends DescriptionContainer<T> { |
---|
| 6 | |
---|
| 7 | /** |
---|
| 8 | * |
---|
| 9 | * |
---|
| 10 | * @param vAllocation |
---|
| 11 | * @throws java.lang.IndexOutOfBoundsException if the index |
---|
| 12 | * given is outside the bounds of the collection |
---|
| 13 | */ |
---|
| 14 | public <Allocation> void addAllocation( |
---|
| 15 | final AllocationInterface<Allocation> vAllocation) |
---|
| 16 | throws java.lang.IndexOutOfBoundsException; |
---|
| 17 | |
---|
| 18 | /** |
---|
| 19 | * |
---|
| 20 | * |
---|
| 21 | * @param index |
---|
| 22 | * @param vAllocation |
---|
| 23 | * @throws java.lang.IndexOutOfBoundsException if the index |
---|
| 24 | * given is outside the bounds of the collection |
---|
| 25 | */ |
---|
| 26 | public <Allocation> void addAllocation(final int index, |
---|
| 27 | final AllocationInterface<Allocation> vAllocation) |
---|
| 28 | throws java.lang.IndexOutOfBoundsException; |
---|
| 29 | |
---|
| 30 | /** |
---|
| 31 | */ |
---|
| 32 | public void deleteTopology(); |
---|
| 33 | |
---|
| 34 | /** |
---|
| 35 | * Method getAllocation. |
---|
| 36 | * |
---|
| 37 | * @param index |
---|
| 38 | * @throws java.lang.IndexOutOfBoundsException if the index |
---|
| 39 | * given is outside the bounds of the collection |
---|
| 40 | * @return the value of the |
---|
| 41 | * schedframe.schedulingplan.impl.Allocation at the given index |
---|
| 42 | */ |
---|
| 43 | public <Allocation>AllocationInterface<Allocation> getAllocation( |
---|
| 44 | final int index) throws java.lang.IndexOutOfBoundsException; |
---|
| 45 | |
---|
| 46 | /** |
---|
| 47 | * Method getAllocation.Returns the contents of the collection |
---|
| 48 | * in an Array. <p>Note: Just in case the collection contents |
---|
| 49 | * are changing in another thread, we pass a 0-length Array of |
---|
| 50 | * the correct type into the API call. This way we <i>know</i> |
---|
| 51 | * that the Array returned is of exactly the correct length. |
---|
| 52 | * |
---|
| 53 | * @return this collection as an Array |
---|
| 54 | */ |
---|
| 55 | public <Allocation>AllocationInterface<Allocation>[] getAllocation(); |
---|
| 56 | |
---|
| 57 | /** |
---|
| 58 | * Method getAllocationCount. |
---|
| 59 | * |
---|
| 60 | * @return the size of this collection |
---|
| 61 | */ |
---|
| 62 | public int getAllocationCount(); |
---|
| 63 | |
---|
| 64 | /** |
---|
| 65 | * Returns the value of field 'jobId'. |
---|
| 66 | * |
---|
| 67 | * @return the value of field 'JobId'. |
---|
| 68 | */ |
---|
| 69 | public java.lang.String getJobId(); |
---|
| 70 | |
---|
| 71 | /** |
---|
| 72 | * Returns the value of field 'scheduledTime'. |
---|
| 73 | * |
---|
| 74 | * @return the value of field 'ScheduledTime'. |
---|
| 75 | */ |
---|
| 76 | public <ScheduledTime>ScheduledTimeInterface<ScheduledTime> getScheduledTime(); |
---|
| 77 | |
---|
| 78 | /** |
---|
| 79 | * Returns the value of field 'status'. |
---|
| 80 | * |
---|
| 81 | * @return the value of field 'Status'. |
---|
| 82 | */ |
---|
| 83 | public org.qcg.broker.schemas.schedulingplan.types.AllocationStatus getStatus(); |
---|
| 84 | |
---|
| 85 | public String getStatusDescription(); |
---|
| 86 | |
---|
| 87 | /** |
---|
| 88 | * Returns the value of field 'taskId'. |
---|
| 89 | * |
---|
| 90 | * @return the value of field 'TaskId'. |
---|
| 91 | */ |
---|
| 92 | public java.lang.String getTaskId(); |
---|
| 93 | |
---|
| 94 | /** |
---|
| 95 | * Returns the value of field 'topology'. |
---|
| 96 | * |
---|
| 97 | * @return the value of field 'Topology'. |
---|
| 98 | */ |
---|
| 99 | public int getTopology(); |
---|
| 100 | |
---|
| 101 | /** |
---|
| 102 | * Method hasTopology. |
---|
| 103 | * |
---|
| 104 | * @return true if at least one Topology has been added |
---|
| 105 | */ |
---|
| 106 | public boolean hasTopology(); |
---|
| 107 | |
---|
| 108 | /** |
---|
| 109 | */ |
---|
| 110 | public void removeAllAllocation(); |
---|
| 111 | |
---|
| 112 | /** |
---|
| 113 | * Method removeAllocation. |
---|
| 114 | * |
---|
| 115 | * @param vAllocation |
---|
| 116 | * @return true if the object was removed from the collection. |
---|
| 117 | */ |
---|
| 118 | public <Allocation> boolean removeAllocation( |
---|
| 119 | final AllocationInterface<Allocation> vAllocation); |
---|
| 120 | |
---|
| 121 | /** |
---|
| 122 | * Method removeAllocationAt. |
---|
| 123 | * |
---|
| 124 | * @param index |
---|
| 125 | * @return the element removed from the collection |
---|
| 126 | */ |
---|
| 127 | public <Allocation>AllocationInterface<Allocation> removeAllocationAt(final int index); |
---|
| 128 | |
---|
| 129 | /** |
---|
| 130 | * |
---|
| 131 | * |
---|
| 132 | * @param index |
---|
| 133 | * @param vAllocation |
---|
| 134 | * @throws java.lang.IndexOutOfBoundsException if the index |
---|
| 135 | * given is outside the bounds of the collection |
---|
| 136 | */ |
---|
| 137 | public <Allocation> void setAllocation(final int index, |
---|
| 138 | final AllocationInterface<Allocation> vAllocation) |
---|
| 139 | throws java.lang.IndexOutOfBoundsException; |
---|
| 140 | |
---|
| 141 | /** |
---|
| 142 | * |
---|
| 143 | * |
---|
| 144 | * @param vAllocationArray |
---|
| 145 | */ |
---|
| 146 | public <Allocation> void setAllocation( |
---|
| 147 | final AllocationInterface<Allocation>[] vAllocationArray); |
---|
| 148 | |
---|
| 149 | /** |
---|
| 150 | * Sets the value of field 'jobId'. |
---|
| 151 | * |
---|
| 152 | * @param jobId the value of field 'jobId'. |
---|
| 153 | */ |
---|
| 154 | public void setJobId(final java.lang.String jobId); |
---|
| 155 | |
---|
| 156 | /** |
---|
| 157 | * Sets the value of field 'scheduledTime'. |
---|
| 158 | * |
---|
| 159 | * @param scheduledTime the value of field 'scheduledTime'. |
---|
| 160 | */ |
---|
| 161 | public <ScheduledTime> void setScheduledTime( |
---|
| 162 | final ScheduledTimeInterface<ScheduledTime> scheduledTime); |
---|
| 163 | |
---|
| 164 | /** |
---|
| 165 | * Sets the value of field 'status'. |
---|
| 166 | * |
---|
| 167 | * @param status the value of field 'status'. |
---|
| 168 | */ |
---|
| 169 | public void setStatus( |
---|
| 170 | final org.qcg.broker.schemas.schedulingplan.types.AllocationStatus status); |
---|
| 171 | |
---|
| 172 | public void setStatusDescription(String statusDescription); |
---|
| 173 | |
---|
| 174 | /** |
---|
| 175 | * Sets the value of field 'taskID'. |
---|
| 176 | * |
---|
| 177 | * @param taskId the value of field 'taskId'. |
---|
| 178 | */ |
---|
| 179 | public void setTaskId(final java.lang.String taskId); |
---|
| 180 | |
---|
| 181 | /** |
---|
| 182 | * Sets the value of field 'topology'. |
---|
| 183 | * |
---|
| 184 | * @param topology the value of field 'topology'. |
---|
| 185 | */ |
---|
| 186 | public void setTopology(final int topology); |
---|
| 187 | |
---|
| 188 | } |
---|