- new GUIWire(submodelModifiable, inPinA, muxPin, new Point(inPinA.getPos().x + 5, inPinA.getPos().y),
- new Point(inPinA.getPos().x + 5, muxPin.getPos().y));
- new GUIWire(submodelModifiable, inPinB, mux[i].getInputPins().get(2), new Point(10 + 5 * i, inPinB.getPos().y),
- new Point(10 + 5 * i, mux[i].getInputPins().get(2).getPos().y));
- new GUIWire(submodelModifiable, mux[i].getOutputPins().get(0), getOutputSubmodelPins().get(i));
+ new GUIWire(submodelModifiable, S0, cp1, new Point[0]);
+ new GUIWire(submodelModifiable, cp1, mux1.getInputPins().get(0), new Point[0]);
+ new GUIWire(submodelModifiable, I0_1, mux1.getInputPins().get(1), new Point(5, 37.5), new Point(5, 22.5));
+ new GUIWire(submodelModifiable, I1_1, mux1.getInputPins().get(2), new Point(10, 137.5), new Point(10, 32.5));
+ new GUIWire(submodelModifiable, mux1.getOutputPins().get(0), Y1, new Point[0]);
+ new GUIWire(submodelModifiable, cp1, cp2, new Point[0]);
+ new GUIWire(submodelModifiable, cp2, mux2.getInputPins().get(0), new Point[0]);
+ new GUIWire(submodelModifiable, I0_2, mux2.getInputPins().get(1), new Point(5, 62.5), new Point(5, 57.5));
+ new GUIWire(submodelModifiable, I1_2, mux2.getInputPins().get(2), new Point(15, 162.5), new Point(15, 67.5));
+ new GUIWire(submodelModifiable, mux2.getOutputPins().get(0), Y2);
+ new GUIWire(submodelModifiable, cp2, cp3, new Point[0]);
+ new GUIWire(submodelModifiable, cp3, mux3.getInputPins().get(0), new Point[0]);
+ new GUIWire(submodelModifiable, I0_3, mux3.getInputPins().get(1), new Point(5, 87.5), new Point(5, 92.5));
+ new GUIWire(submodelModifiable, I1_3, mux3.getInputPins().get(2), new Point(20, 187.5), new Point(20, 102.5));
+ new GUIWire(submodelModifiable, mux3.getOutputPins().get(0), Y3);
+ new GUIWire(submodelModifiable, cp3, mux4.getInputPins().get(0), new Point(25, 117.5));
+ new GUIWire(submodelModifiable, I0_4, mux4.getInputPins().get(1), new Point(5, 112.5), new Point(5, 127.5));
+ new GUIWire(submodelModifiable, I1_4, mux4.getInputPins().get(2), new Point(25, 212.5), new Point(25, 137.5));
+ new GUIWire(submodelModifiable, mux4.getOutputPins().get(0), Y4);