Updated to new SWTHelper version
[Mograsim.git] / net.mograsim.logic.ui.am2900 / components / GUIor_4.json
index 729cd82..86b4413 100644 (file)
@@ -1,7 +1,5 @@
-mograsim version: 0.1.2
+mograsim version: 0.1.3
 {
-  "type": "SimpleRectangularSubmodelComponent",
-  "name": "GUIor_4",
   "width": 35.0,
   "height": 80.0,
   "interfacePins": [
@@ -102,306 +100,286 @@ mograsim version: 0.1.2
       "logicWidth": 1
     }
   ],
-  "composition": {
+  "submodel": {
     "innerScale": 0.4,
     "subComps": [
       {
         "pos": {
           "x": 15.0,
-          "y": 2.5
+          "y": 27.5
         },
-        "name": "GUINandGate",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "GUINandGate",
+        "name": "GUINandGate#1",
+        "params": 1
       },
       {
         "pos": {
           "x": 15.0,
-          "y": 27.5
+          "y": 2.5
         },
-        "name": "GUINandGate",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "GUINandGate",
+        "name": "GUINandGate#0",
+        "params": 1
       },
       {
         "pos": {
           "x": 15.0,
-          "y": 52.5
+          "y": 77.5
         },
-        "name": "GUINandGate",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "GUINandGate",
+        "name": "GUINandGate#3",
+        "params": 1
       },
       {
         "pos": {
           "x": 15.0,
-          "y": 77.5
+          "y": 52.5
         },
-        "name": "GUINandGate",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "GUINandGate",
+        "name": "GUINandGate#2",
+        "params": 1
       },
       {
         "pos": {
-          "x": 15.0,
-          "y": 102.5
+          "x": 65.0,
+          "y": 77.5
         },
-        "name": "GUINandGate",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "GUINandGate",
+        "name": "GUINandGate#11",
+        "params": 1
       },
       {
         "pos": {
-          "x": 15.0,
-          "y": 127.5
+          "x": 65.0,
+          "y": 52.5
         },
-        "name": "GUINandGate",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "GUINandGate",
+        "name": "GUINandGate#10",
+        "params": 1
       },
       {
         "pos": {
-          "x": 15.0,
-          "y": 152.5
+          "x": 6.5,
+          "y": 36.5
         },
-        "name": "GUINandGate",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "name": "WireCrossPoint#1",
+        "params": 1
       },
       {
         "pos": {
-          "x": 15.0,
-          "y": 177.5
+          "x": 6.5,
+          "y": 11.5
         },
-        "name": "GUINandGate",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "name": "WireCrossPoint#0",
+        "params": 1
       },
       {
         "pos": {
-          "x": 65.0,
-          "y": 2.5
+          "x": 6.5,
+          "y": 86.5
         },
-        "name": "GUINandGate",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "name": "WireCrossPoint#3",
+        "params": 1
       },
       {
         "pos": {
-          "x": 65.0,
-          "y": 27.5
+          "x": 6.5,
+          "y": 61.5
         },
-        "name": "GUINandGate",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "name": "WireCrossPoint#2",
+        "params": 1
       },
       {
         "pos": {
-          "x": 65.0,
-          "y": 52.5
+          "x": 6.5,
+          "y": 136.5
         },
-        "name": "GUINandGate",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "name": "WireCrossPoint#5",
+        "params": 1
       },
       {
         "pos": {
-          "x": 65.0,
-          "y": 77.5
+          "x": 6.5,
+          "y": 111.5
         },
-        "name": "GUINandGate",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "name": "WireCrossPoint#4",
+        "params": 1
       },
       {
         "pos": {
-          "x": 6.5,
-          "y": 11.5
+          "x": 65.0,
+          "y": 27.5
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "GUINandGate",
+        "name": "GUINandGate#9",
+        "params": 1
       },
       {
         "pos": {
           "x": 6.5,
-          "y": 36.5
+          "y": 186.5
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "name": "WireCrossPoint#7",
+        "params": 1
       },
       {
         "pos": {
-          "x": 6.5,
-          "y": 61.5
+          "x": 65.0,
+          "y": 2.5
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "GUINandGate",
+        "name": "GUINandGate#8",
+        "params": 1
       },
       {
         "pos": {
           "x": 6.5,
-          "y": 86.5
+          "y": 161.5
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "name": "WireCrossPoint#6",
+        "params": 1
       },
       {
         "pos": {
-          "x": 6.5,
-          "y": 111.5
+          "x": 15.0,
+          "y": 127.5
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "GUINandGate",
+        "name": "GUINandGate#5",
+        "params": 1
       },
       {
         "pos": {
-          "x": 6.5,
-          "y": 136.5
+          "x": 15.0,
+          "y": 102.5
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "GUINandGate",
+        "name": "GUINandGate#4",
+        "params": 1
       },
       {
         "pos": {
-          "x": 6.5,
-          "y": 161.5
+          "x": 15.0,
+          "y": 177.5
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "GUINandGate",
+        "name": "GUINandGate#7",
+        "params": 1
       },
       {
         "pos": {
-          "x": 6.5,
-          "y": 186.5
+          "x": 15.0,
+          "y": 152.5
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "GUINandGate",
+        "name": "GUINandGate#6",
+        "params": 1
       }
     ],
     "innerWires": [
       {
         "pin1": {
-          "compId": 0,
+          "compName": "_submodelinterface",
           "pinName": "A1"
         },
         "pin2": {
-          "compId": 13,
+          "compName": "WireCrossPoint#0",
           "pinName": ""
         },
         "path": []
       },
       {
         "pin1": {
-          "compId": 0,
+          "compName": "_submodelinterface",
           "pinName": "A2"
         },
         "pin2": {
-          "compId": 14,
+          "compName": "WireCrossPoint#1",
           "pinName": ""
         },
         "path": []
       },
       {
         "pin1": {
-          "compId": 0,
+          "compName": "_submodelinterface",
           "pinName": "A3"
         },
         "pin2": {
-          "compId": 15,
+          "compName": "WireCrossPoint#2",
           "pinName": ""
         },
         "path": []
       },
       {
         "pin1": {
-          "compId": 0,
+          "compName": "_submodelinterface",
           "pinName": "A4"
         },
         "pin2": {
-          "compId": 16,
+          "compName": "WireCrossPoint#3",
           "pinName": ""
         },
         "path": []
       },
       {
         "pin1": {
-          "compId": 0,
+          "compName": "_submodelinterface",
           "pinName": "B1"
         },
         "pin2": {
-          "compId": 17,
+          "compName": "WireCrossPoint#4",
           "pinName": ""
         },
         "path": []
       },
       {
         "pin1": {
-          "compId": 0,
+          "compName": "_submodelinterface",
           "pinName": "B2"
         },
         "pin2": {
-          "compId": 18,
+          "compName": "WireCrossPoint#5",
           "pinName": ""
         },
         "path": []
       },
       {
         "pin1": {
-          "compId": 0,
+          "compName": "_submodelinterface",
           "pinName": "B3"
         },
         "pin2": {
-          "compId": 19,
+          "compName": "WireCrossPoint#6",
           "pinName": ""
         },
         "path": []
       },
       {
         "pin1": {
-          "compId": 0,
+          "compName": "_submodelinterface",
           "pinName": "B4"
         },
         "pin2": {
-          "compId": 20,
+          "compName": "WireCrossPoint#7",
           "pinName": ""
         },
         "path": []
       },
       {
         "pin1": {
-          "compId": 13,
+          "compName": "WireCrossPoint#0",
           "pinName": ""
         },
         "pin2": {
-          "compId": 1,
+          "compName": "GUINandGate#0",
           "pinName": "A"
         },
         "path": [
@@ -413,11 +391,11 @@ mograsim version: 0.1.2
       },
       {
         "pin1": {
-          "compId": 13,
+          "compName": "WireCrossPoint#0",
           "pinName": ""
         },
         "pin2": {
-          "compId": 1,
+          "compName": "GUINandGate#0",
           "pinName": "B"
         },
         "path": [
@@ -429,11 +407,11 @@ mograsim version: 0.1.2
       },
       {
         "pin1": {
-          "compId": 14,
+          "compName": "WireCrossPoint#1",
           "pinName": ""
         },
         "pin2": {
-          "compId": 2,
+          "compName": "GUINandGate#1",
           "pinName": "A"
         },
         "path": [
@@ -445,11 +423,11 @@ mograsim version: 0.1.2
       },
       {
         "pin1": {
-          "compId": 14,
+          "compName": "WireCrossPoint#1",
           "pinName": ""
         },
         "pin2": {
-          "compId": 2,
+          "compName": "GUINandGate#1",
           "pinName": "B"
         },
         "path": [
@@ -461,11 +439,11 @@ mograsim version: 0.1.2
       },
       {
         "pin1": {
-          "compId": 15,
+          "compName": "WireCrossPoint#2",
           "pinName": ""
         },
         "pin2": {
-          "compId": 3,
+          "compName": "GUINandGate#2",
           "pinName": "A"
         },
         "path": [
@@ -477,11 +455,11 @@ mograsim version: 0.1.2
       },
       {
         "pin1": {
-          "compId": 15,
+          "compName": "WireCrossPoint#2",
           "pinName": ""
         },
         "pin2": {
-          "compId": 3,
+          "compName": "GUINandGate#2",
           "pinName": "B"
         },
         "path": [
@@ -493,11 +471,11 @@ mograsim version: 0.1.2
       },
       {
         "pin1": {
-          "compId": 16,
+          "compName": "WireCrossPoint#3",
           "pinName": ""
         },
         "pin2": {
-          "compId": 4,
+          "compName": "GUINandGate#3",
           "pinName": "A"
         },
         "path": [
@@ -509,11 +487,11 @@ mograsim version: 0.1.2
       },
       {
         "pin1": {
-          "compId": 16,
+          "compName": "WireCrossPoint#3",
           "pinName": ""
         },
         "pin2": {
-          "compId": 4,
+          "compName": "GUINandGate#3",
           "pinName": "B"
         },
         "path": [
@@ -525,11 +503,11 @@ mograsim version: 0.1.2
       },
       {
         "pin1": {
-          "compId": 17,
+          "compName": "WireCrossPoint#4",
           "pinName": ""
         },
         "pin2": {
-          "compId": 5,
+          "compName": "GUINandGate#4",
           "pinName": "A"
         },
         "path": [
@@ -541,11 +519,11 @@ mograsim version: 0.1.2
       },
       {
         "pin1": {
-          "compId": 17,
+          "compName": "WireCrossPoint#4",
           "pinName": ""
         },
         "pin2": {
-          "compId": 5,
+          "compName": "GUINandGate#4",
           "pinName": "B"
         },
         "path": [
@@ -557,11 +535,11 @@ mograsim version: 0.1.2
       },
       {
         "pin1": {
-          "compId": 18,
+          "compName": "WireCrossPoint#5",
           "pinName": ""
         },
         "pin2": {
-          "compId": 6,
+          "compName": "GUINandGate#5",
           "pinName": "A"
         },
         "path": [
@@ -573,11 +551,11 @@ mograsim version: 0.1.2
       },
       {
         "pin1": {
-          "compId": 18,
+          "compName": "WireCrossPoint#5",
           "pinName": ""
         },
         "pin2": {
-          "compId": 6,
+          "compName": "GUINandGate#5",
           "pinName": "B"
         },
         "path": [
@@ -589,11 +567,11 @@ mograsim version: 0.1.2
       },
       {
         "pin1": {
-          "compId": 19,
+          "compName": "WireCrossPoint#6",
           "pinName": ""
         },
         "pin2": {
-          "compId": 7,
+          "compName": "GUINandGate#6",
           "pinName": "A"
         },
         "path": [
@@ -605,11 +583,11 @@ mograsim version: 0.1.2
       },
       {
         "pin1": {
-          "compId": 19,
+          "compName": "WireCrossPoint#6",
           "pinName": ""
         },
         "pin2": {
-          "compId": 7,
+          "compName": "GUINandGate#6",
           "pinName": "B"
         },
         "path": [
@@ -621,11 +599,11 @@ mograsim version: 0.1.2
       },
       {
         "pin1": {
-          "compId": 20,
+          "compName": "WireCrossPoint#7",
           "pinName": ""
         },
         "pin2": {
-          "compId": 8,
+          "compName": "GUINandGate#7",
           "pinName": "A"
         },
         "path": [
@@ -637,11 +615,11 @@ mograsim version: 0.1.2
       },
       {
         "pin1": {
-          "compId": 20,
+          "compName": "WireCrossPoint#7",
           "pinName": ""
         },
         "pin2": {
-          "compId": 8,
+          "compName": "GUINandGate#7",
           "pinName": "B"
         },
         "path": [
@@ -653,11 +631,11 @@ mograsim version: 0.1.2
       },
       {
         "pin1": {
-          "compId": 1,
+          "compName": "GUINandGate#0",
           "pinName": "Y"
         },
         "pin2": {
-          "compId": 9,
+          "compName": "GUINandGate#8",
           "pinName": "A"
         },
         "path": [
@@ -673,11 +651,11 @@ mograsim version: 0.1.2
       },
       {
         "pin1": {
-          "compId": 5,
+          "compName": "GUINandGate#4",
           "pinName": "Y"
         },
         "pin2": {
-          "compId": 9,
+          "compName": "GUINandGate#8",
           "pinName": "B"
         },
         "path": [
@@ -693,11 +671,11 @@ mograsim version: 0.1.2
       },
       {
         "pin1": {
-          "compId": 2,
+          "compName": "GUINandGate#1",
           "pinName": "Y"
         },
         "pin2": {
-          "compId": 10,
+          "compName": "GUINandGate#9",
           "pinName": "A"
         },
         "path": [
@@ -713,11 +691,11 @@ mograsim version: 0.1.2
       },
       {
         "pin1": {
-          "compId": 6,
+          "compName": "GUINandGate#5",
           "pinName": "Y"
         },
         "pin2": {
-          "compId": 10,
+          "compName": "GUINandGate#9",
           "pinName": "B"
         },
         "path": [
@@ -733,11 +711,11 @@ mograsim version: 0.1.2
       },
       {
         "pin1": {
-          "compId": 3,
+          "compName": "GUINandGate#2",
           "pinName": "Y"
         },
         "pin2": {
-          "compId": 11,
+          "compName": "GUINandGate#10",
           "pinName": "A"
         },
         "path": [
@@ -753,11 +731,11 @@ mograsim version: 0.1.2
       },
       {
         "pin1": {
-          "compId": 7,
+          "compName": "GUINandGate#6",
           "pinName": "Y"
         },
         "pin2": {
-          "compId": 11,
+          "compName": "GUINandGate#10",
           "pinName": "B"
         },
         "path": [
@@ -773,11 +751,11 @@ mograsim version: 0.1.2
       },
       {
         "pin1": {
-          "compId": 4,
+          "compName": "GUINandGate#3",
           "pinName": "Y"
         },
         "pin2": {
-          "compId": 12,
+          "compName": "GUINandGate#11",
           "pinName": "A"
         },
         "path": [
@@ -793,11 +771,11 @@ mograsim version: 0.1.2
       },
       {
         "pin1": {
-          "compId": 8,
+          "compName": "GUINandGate#7",
           "pinName": "Y"
         },
         "pin2": {
-          "compId": 12,
+          "compName": "GUINandGate#11",
           "pinName": "B"
         },
         "path": [
@@ -813,68 +791,56 @@ mograsim version: 0.1.2
       },
       {
         "pin1": {
-          "compId": 9,
+          "compName": "GUINandGate#8",
           "pinName": "Y"
         },
         "pin2": {
-          "compId": 0,
+          "compName": "_submodelinterface",
           "pinName": "Y1"
         },
         "path": []
       },
       {
         "pin1": {
-          "compId": 10,
+          "compName": "GUINandGate#9",
           "pinName": "Y"
         },
         "pin2": {
-          "compId": 0,
+          "compName": "_submodelinterface",
           "pinName": "Y2"
         },
         "path": []
       },
       {
         "pin1": {
-          "compId": 11,
+          "compName": "GUINandGate#10",
           "pinName": "Y"
         },
         "pin2": {
-          "compId": 0,
+          "compName": "_submodelinterface",
           "pinName": "Y3"
         },
         "path": []
       },
       {
         "pin1": {
-          "compId": 12,
+          "compName": "GUINandGate#11",
           "pinName": "Y"
         },
         "pin2": {
-          "compId": 0,
+          "compName": "_submodelinterface",
           "pinName": "Y4"
         },
         "path": []
       }
     ]
   },
-  "specialized": {
-    "input_count": [
-      "A1",
-      "A2",
-      "A3",
-      "A4",
-      "B1",
-      "B2",
-      "B3",
-      "B4"
-    ],
-    "label": "GUIor_4",
-    "logic_width": 1,
-    "output_count": [
-      "Y1",
-      "Y2",
-      "Y3",
-      "Y4"
-    ]
+  "symbolRendererSnippetID": "SimpleRectangularLikeSymbolRenderer",
+  "symbolRendererParams": {
+    "centerText": "GUIor_4",
+    "horizontalComponentCenter": 17.5,
+    "centerTextHeight": 5.0,
+    "pinLabelHeight": 3.5,
+    "pinLabelMargin": 0.5
   }
 }
\ No newline at end of file