- new GUIWire(model, andGate.getPins().get(0), notGate.getPins().get(1), new Point(20, 50));
+ WireCrossPoint wcp1 = new WireCrossPoint(model, 1);
+ wcp1.moveTo(150, 10);
+
+ new GUIWire(model, andGate.getOutputPin(), notGate.getInputPins().get(0), new Point(60, 50));
+ new GUIWire(model, notGate.getOutputPin(), wcp1.getPin());
+
+ GUIManualSwitch sw1 = new GUIManualSwitch(model);
+ sw1.moveTo(-20, 0);
+ GUIManualSwitch sw2 = new GUIManualSwitch(model);
+ sw2.moveTo(-20, 50);
+
+ new GUIWire(model, sw1.getOutputPin(), andGate.getInputPins().get(0));
+ new GUIWire(model, sw2.getOutputPin(), andGate.getInputPins().get(1));