Simplified file representation of SubmodelComponents
[Mograsim.git] / net.mograsim.logic.ui / src / net / mograsim / logic / ui / model / components / params / SubComponentParams.java
index dc05114..8ea235f 100644 (file)
@@ -1,15 +1,18 @@
 package net.mograsim.logic.ui.model.components.params;
 
 import java.io.IOException;
+import java.util.Map;
 
 import net.haspamelodica.swt.helper.swtobjectwrappers.Point;
 
 public class SubComponentParams
 {
+       public String type;
        public final static String fileExtension = ".sc";
        public double width, height;
        public InterfacePinParams[] interfacePins;
        public GeneralComponentParams composition;
+       public Map<String, Object> specialized;
 
        public static class InterfacePinParams
        {
@@ -17,6 +20,17 @@ public class SubComponentParams
                public int logicWidth;
        }
 
+       public static class InnerWireParams
+       {
+               public InnerPinParams pin1, pin2;
+               public Point[] path;
+       }
+
+       public static class InnerPinParams
+       {
+               public int compId, pinIndex;
+       }
+
        public static SubComponentParams readJson(String path) throws IOException
        {
                return JsonHandler.readJson(path, SubComponentParams.class);