Browse Source

Make some fields of Nowicki public.

Arthur Bit-Monnot 3 years ago
parent
commit
741eeb02f3
1 changed files with 8 additions and 8 deletions
  1. 8
    8
      src/main/java/jobshop/solvers/neighborhood/Nowicki.java

+ 8
- 8
src/main/java/jobshop/solvers/neighborhood/Nowicki.java View File

@@ -19,13 +19,13 @@ public class Nowicki extends Neighborhood<ResourceOrder> {
19 19
      * Represent the task sequence : [(0,2) (2,1)]
20 20
      *
21 21
      * */
22
-    static class Block {
22
+    public static class Block {
23 23
         /** machine on which the block is identified */
24
-        final int machine;
24
+        public final int machine;
25 25
         /** index of the first task of the block */
26
-        final int firstTask;
26
+        public final int firstTask;
27 27
         /** index of the last task of the block */
28
-        final int lastTask;
28
+        public final int lastTask;
29 29
 
30 30
         Block(int machine, int firstTask, int lastTask) {
31 31
             this.machine = machine;
@@ -49,13 +49,13 @@ public class Nowicki extends Neighborhood<ResourceOrder> {
49 49
      * machine 1 : (2,1) (0,2) (1,1)
50 50
      * machine 2 : ...
51 51
      */
52
-    static class Swap extends Neighbor<ResourceOrder> {
52
+    public static class Swap extends Neighbor<ResourceOrder> {
53 53
         // machine on which to perform the swap
54
-        final int machine;
54
+        public final int machine;
55 55
         // index of one task to be swapped
56
-        final int t1;
56
+        public final int t1;
57 57
         // index of the other task to be swapped
58
-        final int t2;
58
+        public final int t2;
59 59
 
60 60
         Swap(int machine, int t1, int t2) {
61 61
             this.machine = machine;

Loading…
Cancel
Save