|
@@ -62,6 +62,16 @@ public class ResourceOrder extends Encoding {
|
62
|
62
|
nextFreeSlot[machine] += 1;
|
63
|
63
|
}
|
64
|
64
|
|
|
65
|
+ /** Returns the i-th task scheduled on a particular machine.
|
|
66
|
+ *
|
|
67
|
+ * @param machine Machine on which the task to retrieve is scheduled.
|
|
68
|
+ * @param taskIndex Index of the task in the queue for this machine.
|
|
69
|
+ * @return The i-th task scheduled on a machine.
|
|
70
|
+ */
|
|
71
|
+ public Task getTaskOfMachine(int machine, int taskIndex) {
|
|
72
|
+ return tasksByMachine[machine][taskIndex];
|
|
73
|
+ }
|
|
74
|
+
|
65
|
75
|
/** Exchange the order of two tasks that are scheduled on a given machine.
|
66
|
76
|
*
|
67
|
77
|
* @param machine Machine on which the two tasks appear (line on which to perform the exchange)
|