- new GUIWire(submodelModifiable, A, nand.getInputPins().get(0));
- new GUIWire(submodelModifiable, B, nand.getInputPins().get(1));
- new GUIWire(submodelModifiable, nand.getOutputPin(), cp1, new Point[0]);
- new GUIWire(submodelModifiable, cp1, not.getInputPins().get(0), new Point(45, 20));
- new GUIWire(submodelModifiable, cp1, not.getInputPins().get(1), new Point(45, 30));
- new GUIWire(submodelModifiable, not.getOutputPin(), Y);
+ new GUIWire(submodelModifiable, A, nand.getPin("A"));
+ new GUIWire(submodelModifiable, B, nand.getPin("B"));
+ new GUIWire(submodelModifiable, nand.getPin("Y"), cp1, new Point[0]);
+ new GUIWire(submodelModifiable, cp1, not.getPin("A"), new Point(45, 20));
+ new GUIWire(submodelModifiable, cp1, not.getPin("B"), new Point(45, 30));
+ new GUIWire(submodelModifiable, not.getPin("Y"), Y);