Made finding the ID of a JsonSerializable less ugly
[Mograsim.git] / net.mograsim.logic.model.am2900 / src / net / mograsim / logic / model / am2900 / components / am2910 / GUIAm2910InstrPLA.java
index 2be428d..960cc74 100644 (file)
@@ -21,7 +21,7 @@ public class GUIAm2910InstrPLA extends SimpleRectangularHardcodedGUIComponent
 {
        public GUIAm2910InstrPLA(ViewModelModifiable model, String name)
        {
-               super(model, name, "Instr.\nPLA");
+               super(model, "GUIAm2910InstrPLA", name, "Instr.\nPLA");
                setSize(30, 85);
                addPin(new Pin(this, "PASS", 1, PinUsage.INPUT, 0, 5), Position.RIGHT);
                addPin(new Pin(this, "I", 4, PinUsage.INPUT, 0, 20), Position.RIGHT);
@@ -40,7 +40,7 @@ public class GUIAm2910InstrPLA extends SimpleRectangularHardcodedGUIComponent
        }
 
        @Override
-       protected Object recalculate(Object lastState, Map<String, ReadEnd> readEnds, Map<String, ReadWriteEnd> readWriteEnds)
+       public Object recalculate(Object lastState, Map<String, ReadEnd> readEnds, Map<String, ReadWriteEnd> readWriteEnds)
        {
                ReadEnd PASS = readEnds.get("PASS");
                ReadEnd I = readEnds.get("I");