- notS0.moveTo(15, 2.5);
- notS1.moveTo(15, 27.5);
- andY00.moveTo(55, 2.5);
- andY01.moveTo(55, 27.5);
- andY10.moveTo(55, 52.5);
- andY11.moveTo(55, 77.5);
- cpS01.moveTo(5, 12.5);
- cpS11.moveTo(10, 37.5);
- cpS02.moveTo(5, 17.5);
- cpS12.moveTo(10, 42.5);
- cpS03.moveTo(50, 67.5);
- cpS13.moveTo(40, 72.5);
- cpNotS0.moveTo(40, 12.5);
- cpNotS1.moveTo(45, 37.5);
-
- new GUIWire(submodelModifiable, S0, cpS01.getPin());
- new GUIWire(submodelModifiable, S1, cpS11.getPin());
- new GUIWire(submodelModifiable, cpS01.getPin(), notS0.getInputPins().get(0), new Point(5, 7.5));
- new GUIWire(submodelModifiable, cpS11.getPin(), notS1.getInputPins().get(0), new Point(10, 32.5));
- new GUIWire(submodelModifiable, cpS01.getPin(), cpS02.getPin());
- new GUIWire(submodelModifiable, cpS11.getPin(), cpS12.getPin());
- new GUIWire(submodelModifiable, cpS02.getPin(), notS0.getInputPins().get(1));
- new GUIWire(submodelModifiable, cpS12.getPin(), notS1.getInputPins().get(1));
- new GUIWire(submodelModifiable, cpS02.getPin(), cpS03.getPin(), new Point(5, 67.5));
- new GUIWire(submodelModifiable, cpS12.getPin(), cpS13.getPin(), new Point(10, 62.5), new Point(40, 62.5));
- new GUIWire(submodelModifiable, notS0.getOutputPin(), cpNotS0.getPin());
- new GUIWire(submodelModifiable, notS1.getOutputPin(), cpNotS1.getPin());
- new GUIWire(submodelModifiable, cpNotS0.getPin(), andY00.getPinA(), new Point(40, 7.5));
- new GUIWire(submodelModifiable, cpNotS1.getPin(), andY00.getPinB(), new Point(45, 22.5));
- new GUIWire(submodelModifiable, cpS03.getPin(), andY01.getPinA(), new Point(50, 32.5));
- new GUIWire(submodelModifiable, cpNotS1.getPin(), andY01.getPinB(), new Point(45, 47.5));
- new GUIWire(submodelModifiable, cpNotS0.getPin(), andY10.getPinA(), new Point(40, 57.5));
- new GUIWire(submodelModifiable, cpS13.getPin(), andY10.getPinB());
- new GUIWire(submodelModifiable, cpS03.getPin(), andY11.getPinA(), new Point(50, 82.5));
- new GUIWire(submodelModifiable, cpS13.getPin(), andY11.getPinB(), new Point(40, 97.5));
- new GUIWire(submodelModifiable, andY00.getPinY(), Y00, new Point(95, 15), new Point(95, 12.5));
- new GUIWire(submodelModifiable, andY01.getPinY(), Y01, new Point(95, 40), new Point(95, 37.5));
- new GUIWire(submodelModifiable, andY10.getPinY(), Y10, new Point(95, 65), new Point(95, 62.5));
- new GUIWire(submodelModifiable, andY11.getPinY(), Y11, new Point(95, 90), new Point(95, 87.5));
- }
-
- public Pin getPinS0()
- {
- return pinS0;
- }
-
- public Pin getPinS1()
- {
- return pinS1;
- }
-
- public Pin getPinY00()
- {
- return pinY00;
- }
-
- public Pin getPinY01()
- {
- return pinY01;
- }
-
- public Pin getPinY10()
- {
- return pinY10;
- }
-
- public Pin getPinY11()
- {
- return pinY11;
+ notS0.moveTo(10, 2.5);
+ notS1.moveTo(10, 27.5);
+ andY00.moveTo(40, 2.5);
+ andY01.moveTo(40, 27.5);
+ andY10.moveTo(40, 52.5);
+ andY11.moveTo(40, 77.5);
+ cpS01.moveCenterTo(7.5, 12.5);
+ cpS11.moveCenterTo(5, 37.5);
+ cpS02.moveCenterTo(7.5, 17.5);
+ cpS12.moveCenterTo(5, 42.5);
+ cpS03.moveCenterTo(37.5, 62.5);
+ cpS13.moveCenterTo(32.5, 67.5);
+ cpNotS0.moveCenterTo(32.5, 12.5);
+ cpNotS1.moveCenterTo(35, 37.5);
+
+ new GUIWire(submodelModifiable, S0, cpS01, new Point[0]);
+ new GUIWire(submodelModifiable, S1, cpS11, new Point[0]);
+ new GUIWire(submodelModifiable, cpS01, notS0.getPin("A"), new Point(7.5, 7.5));
+ new GUIWire(submodelModifiable, cpS11, notS1.getPin("A"), new Point(5, 32.5));
+ new GUIWire(submodelModifiable, cpS01, cpS02, new Point[0]);
+ new GUIWire(submodelModifiable, cpS11, cpS12, new Point[0]);
+ new GUIWire(submodelModifiable, cpS02, notS0.getPin("B"), new Point[0]);
+ new GUIWire(submodelModifiable, cpS12, notS1.getPin("B"), new Point[0]);
+ new GUIWire(submodelModifiable, cpS02, cpS03, new Point(7.5, 62.5));
+ new GUIWire(submodelModifiable, cpS12, cpS13, new Point(5, 67.5), new Point(32.5, 67.5));
+ new GUIWire(submodelModifiable, notS0.getPin("Y"), cpNotS0, new Point[0]);
+ new GUIWire(submodelModifiable, notS1.getPin("Y"), cpNotS1, new Point[0]);
+ new GUIWire(submodelModifiable, cpNotS0, andY00.getPin("A"), new Point(32.5, 7.5));
+ new GUIWire(submodelModifiable, cpNotS1, andY00.getPin("B"), new Point(35, 17.5));
+ new GUIWire(submodelModifiable, cpS03, andY01.getPin("A"), new Point(37.5, 32.5));
+ new GUIWire(submodelModifiable, cpNotS1, andY01.getPin("B"), new Point(35, 42.5));
+ new GUIWire(submodelModifiable, cpNotS0, andY10.getPin("A"), new Point(32.5, 57.5));
+ new GUIWire(submodelModifiable, cpS13, andY10.getPin("B"), new Point[0]);
+ new GUIWire(submodelModifiable, cpS03, andY11.getPin("A"), new Point(37.5, 82.5));
+ new GUIWire(submodelModifiable, cpS13, andY11.getPin("B"), new Point(32.5, 92.5));
+ new GUIWire(submodelModifiable, andY00.getPin("Y"), Y00);
+ new GUIWire(submodelModifiable, andY01.getPin("Y"), Y01);
+ new GUIWire(submodelModifiable, andY10.getPin("Y"), Y10);
+ new GUIWire(submodelModifiable, andY11.getPin("Y"), Y11);