Equivalent inner components now exchangeable. Fixed in/output pin order.
[Mograsim.git] / net.mograsim.logic.ui / src / net / mograsim / logic / ui / model / components / SubmodelComponentParams.java
index 3eb0629..1276d13 100644 (file)
@@ -11,7 +11,7 @@ import net.mograsim.logic.ui.util.JsonHandler;
  */
 public class SubmodelComponentParams
 {
-       String type;
+       String type, name;
        double width, height;
        InterfacePinParams[] interfacePins;
        ComponentCompositionParams composition;
@@ -45,7 +45,7 @@ public class SubmodelComponentParams
                public static class InnerComponentParams
                {
                        Point pos;
-                       String type;
+                       String name;
                        Map<String, Object> params;
                }
        }