- cpB2.moveTo(25, 52.5);
- cpB3.moveTo(25, 77.5);
- cpB4.moveTo(25, 102.5);
-
- new GUIWire(submodelModifiable, A1, and1.getPinA());
- new GUIWire(submodelModifiable, A2, and2.getPinA());
- new GUIWire(submodelModifiable, A3, and3.getPinA());
- new GUIWire(submodelModifiable, A4, and4.getPinA());
- new GUIWire(submodelModifiable, B, cpB4, new Point(25, 125));
- new GUIWire(submodelModifiable, cpB4, and4.getPinB());
- new GUIWire(submodelModifiable, cpB4, cpB3);
- new GUIWire(submodelModifiable, cpB3, and3.getPinB());
- new GUIWire(submodelModifiable, cpB3, cpB2);
- new GUIWire(submodelModifiable, cpB2, and2.getPinB());
- new GUIWire(submodelModifiable, cpB2, and1.getPinB(), new Point(25, 27.5));
- new GUIWire(submodelModifiable, and1.getPinY(), Y1, new Point(75, 20), new Point(75, 12.5));
- new GUIWire(submodelModifiable, and2.getPinY(), Y2, new Point(75, 45), new Point(75, 37.5));
- new GUIWire(submodelModifiable, and3.getPinY(), Y3, new Point(75, 70), new Point(75, 62.5));
- new GUIWire(submodelModifiable, and4.getPinY(), Y4, new Point(75, 95), new Point(75, 87.5));
- }
-
- public Pin getPinA1()
- {
- return pinA1;
- }
-
- public Pin getPinA2()
- {
- return pinA2;
- }
-
- public Pin getPinA3()
- {
- return pinA3;
- }
-
- public Pin getPinA4()
- {
- return pinA4;
- }
-
- public Pin getPinB()
- {
- return pinB;
- }
-
- public Pin getPinY1()
- {
- return pinY1;
- }
-
- public Pin getPinY2()
- {
- return pinY2;
- }
-
- public Pin getPinY3()
- {
- return pinY3;
- }
-
- public Pin getPinY4()
- {
- return pinY4;
+ cpB2.moveTo(25, 47.5);
+ cpB3.moveTo(25, 72.5);
+ cpB4.moveTo(25, 97.5);
+
+ new GUIWire(submodelModifiable, A1, and1.getInputPins().get(0), new Point[0]);
+ new GUIWire(submodelModifiable, A2, and2.getInputPins().get(0), new Point[0]);
+ new GUIWire(submodelModifiable, A3, and3.getInputPins().get(0), new Point[0]);
+ new GUIWire(submodelModifiable, A4, and4.getInputPins().get(0), new Point[0]);
+ new GUIWire(submodelModifiable, B, cpB4, new Point(25, 112.5));
+ new GUIWire(submodelModifiable, cpB4, and4.getInputPins().get(1), new Point[0]);
+ new GUIWire(submodelModifiable, cpB4, cpB3, new Point[0]);
+ new GUIWire(submodelModifiable, cpB3, and3.getInputPins().get(1), new Point[0]);
+ new GUIWire(submodelModifiable, cpB3, cpB2, new Point[0]);
+ new GUIWire(submodelModifiable, cpB2, and2.getInputPins().get(1), new Point[0]);
+ new GUIWire(submodelModifiable, cpB2, and1.getInputPins().get(1), new Point(25, 22.5));
+ new GUIWire(submodelModifiable, and1.getOutputPins().get(0), Y1, new Point[0]);
+ new GUIWire(submodelModifiable, and2.getOutputPins().get(0), Y2, new Point[0]);
+ new GUIWire(submodelModifiable, and3.getOutputPins().get(0), Y3, new Point[0]);
+ new GUIWire(submodelModifiable, and4.getOutputPins().get(0), Y4, new Point[0]);