GUIComponents now have names
[Mograsim.git] / net.mograsim.logic.ui.am2900 / components / GUIfulladder.json
index 259ba27..dc4c616 100644 (file)
@@ -1,7 +1,5 @@
-mograsim version: 0.1.2
+mograsim version: 0.1.3
 {
-  "type": "SimpleRectangularSubmodelComponent",
-  "name": "GUIfulladder",
   "width": 35.0,
   "height": 30.0,
   "interfacePins": [
@@ -46,107 +44,106 @@ mograsim version: 0.1.2
       "logicWidth": 1
     }
   ],
-  "composition": {
+  "submodel": {
     "innerScale": 0.4,
     "subComps": [
       {
         "pos": {
-          "x": 5.0,
+          "x": 57.5,
           "y": 40.0
         },
-        "name": "GUIhalfadder",
-        "params": {}
+        "id": "GUINandGate",
+        "name": "GUINandGate#0",
+        "params": 1
       },
       {
         "pos": {
-          "x": 45.0,
-          "y": 7.5
+          "x": 5.0,
+          "y": 40.0
         },
-        "name": "GUIhalfadder",
-        "params": {}
+        "id": "GUIhalfadder",
+        "name": "GUIhalfadder#0"
       },
       {
         "pos": {
-          "x": 57.5,
-          "y": 40.0
+          "x": 45.0,
+          "y": 7.5
         },
-        "name": "GUINandGate",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "GUIhalfadder",
+        "name": "GUIhalfadder#1"
       }
     ],
     "innerWires": [
       {
         "pin1": {
-          "compId": 0,
+          "compName": "_submodelinterface",
           "pinName": "A"
         },
         "pin2": {
-          "compId": 2,
+          "compName": "GUIhalfadder#1",
           "pinName": "A"
         },
         "path": []
       },
       {
         "pin1": {
-          "compId": 0,
+          "compName": "_submodelinterface",
           "pinName": "B"
         },
         "pin2": {
-          "compId": 1,
+          "compName": "GUIhalfadder#0",
           "pinName": "A"
         }
       },
       {
         "pin1": {
-          "compId": 0,
+          "compName": "_submodelinterface",
           "pinName": "C"
         },
         "pin2": {
-          "compId": 1,
+          "compName": "GUIhalfadder#0",
           "pinName": "B"
         }
       },
       {
         "pin1": {
-          "compId": 1,
+          "compName": "GUIhalfadder#0",
           "pinName": "Y"
         },
         "pin2": {
-          "compId": 2,
+          "compName": "GUIhalfadder#1",
           "pinName": "B"
         }
       },
       {
         "pin1": {
-          "compId": 1,
+          "compName": "GUIhalfadder#0",
           "pinName": "_Z"
         },
         "pin2": {
-          "compId": 3,
+          "compName": "GUINandGate#0",
           "pinName": "B"
         },
         "path": []
       },
       {
         "pin1": {
-          "compId": 2,
+          "compName": "GUIhalfadder#1",
           "pinName": "Y"
         },
         "pin2": {
-          "compId": 0,
+          "compName": "_submodelinterface",
           "pinName": "Y"
         },
         "path": []
       },
       {
         "pin1": {
-          "compId": 2,
+          "compName": "GUIhalfadder#1",
           "pinName": "_Z"
         },
         "pin2": {
-          "compId": 3,
+          "compName": "GUINandGate#0",
           "pinName": "A"
         },
         "path": [
@@ -170,27 +167,22 @@ mograsim version: 0.1.2
       },
       {
         "pin1": {
-          "compId": 3,
+          "compName": "GUINandGate#0",
           "pinName": "Y"
         },
         "pin2": {
-          "compId": 0,
+          "compName": "_submodelinterface",
           "pinName": "Z"
         }
       }
     ]
   },
-  "specialized": {
-    "input_count": [
-      "A",
-      "B",
-      "C"
-    ],
-    "label": "GUIfulladder",
-    "logic_width": 1,
-    "output_count": [
-      "Y",
-      "Z"
-    ]
+  "symbolRendererSnippetID": "SimpleRectangularLikeSymbolRenderer",
+  "symbolRendererParams": {
+    "centerText": "GUIfulladder",
+    "horizontalComponentCenter": 17.5,
+    "centerTextHeight": 5.0,
+    "pinLabelHeight": 3.5,
+    "pinLabelMargin": 0.5
   }
 }
\ No newline at end of file