diff options
author | Suchita Lad | 2024-05-17 17:26:07 +0530 |
---|---|---|
committer | Suchita Lad | 2024-05-17 17:26:07 +0530 |
commit | 35b2c7d07334b5753ebfe9f65cc10e90ac40b8c5 (patch) | |
tree | 2226b12f0bb3c23005e04d076f2754d1e03b6890 | |
parent | e562bf7d3358919c4df0102b945dbdb1f2aaf2a7 (diff) | |
download | Common-Interface-Project-35b2c7d07334b5753ebfe9f65cc10e90ac40b8c5.tar.gz Common-Interface-Project-35b2c7d07334b5753ebfe9f65cc10e90ac40b8c5.tar.bz2 Common-Interface-Project-35b2c7d07334b5753ebfe9f65cc10e90ac40b8c5.zip |
Added links & ports files code
86 files changed, 2627 insertions, 2 deletions
diff --git a/blocks/Makefile b/blocks/Makefile index da7d54f7..b9b2aab1 100644 --- a/blocks/Makefile +++ b/blocks/Makefile @@ -9,8 +9,8 @@ SRCFILES += $(sort $(wildcard Xcos/links/*.py)) XCOS2XMLFILES := $(sort $(wildcard xcos2xml/head.xsl)) XCOS2XMLFILES += $(sort $(wildcard xcos2xml/blocks/*.xsl)) -#XCOS2XMLFILES += $(sort $(wildcard xcos2xml/ports/*.xsl)) -#XCOS2XMLFILES += $(sort $(wildcard xcos2xml/links/*.xsl)) +XCOS2XMLFILES += $(sort $(wildcard xcos2xml/ports/*.xsl)) +XCOS2XMLFILES += $(sort $(wildcard xcos2xml/links/*.xsl)) XCOS2XMLFILES += $(sort $(wildcard xcos2xml/foot.xsl)) IMPORT := Xcos/xcosblocks.py diff --git a/blocks/xcos2xml/blocks/ABS_VALUE.xsl b/blocks/xcos2xml/blocks/ABS_VALUE.xsl new file mode 100644 index 00000000..334ee231 --- /dev/null +++ b/blocks/xcos2xml/blocks/ABS_VALUE.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'ABS_VALUE']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/AFFICH_m.xsl b/blocks/xcos2xml/blocks/AFFICH_m.xsl new file mode 100644 index 00000000..7db02af3 --- /dev/null +++ b/blocks/xcos2xml/blocks/AFFICH_m.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'AFFICH_m']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/AUTOMAT.xsl b/blocks/xcos2xml/blocks/AUTOMAT.xsl new file mode 100644 index 00000000..0f94287d --- /dev/null +++ b/blocks/xcos2xml/blocks/AUTOMAT.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'AUTOMAT']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/BACKLASH.xsl b/blocks/xcos2xml/blocks/BACKLASH.xsl new file mode 100644 index 00000000..23e3760e --- /dev/null +++ b/blocks/xcos2xml/blocks/BACKLASH.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'BACKLASH']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/BARXY.xsl b/blocks/xcos2xml/blocks/BARXY.xsl new file mode 100644 index 00000000..ca32301c --- /dev/null +++ b/blocks/xcos2xml/blocks/BARXY.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'BARXY']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/BIGSOM_f.xsl b/blocks/xcos2xml/blocks/BIGSOM_f.xsl new file mode 100644 index 00000000..d7920dc7 --- /dev/null +++ b/blocks/xcos2xml/blocks/BIGSOM_f.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'BIGSOM_f']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/BITCLEAR.xsl b/blocks/xcos2xml/blocks/BITCLEAR.xsl new file mode 100644 index 00000000..82411767 --- /dev/null +++ b/blocks/xcos2xml/blocks/BITCLEAR.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'BITCLEAR']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/BITSET.xsl b/blocks/xcos2xml/blocks/BITSET.xsl new file mode 100644 index 00000000..6deb8019 --- /dev/null +++ b/blocks/xcos2xml/blocks/BITSET.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'BITSET']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/BOUNCE.xsl b/blocks/xcos2xml/blocks/BOUNCE.xsl new file mode 100644 index 00000000..8d9cb712 --- /dev/null +++ b/blocks/xcos2xml/blocks/BOUNCE.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'BOUNCE']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/BOUNCEXY.xsl b/blocks/xcos2xml/blocks/BOUNCEXY.xsl new file mode 100644 index 00000000..effc9ea5 --- /dev/null +++ b/blocks/xcos2xml/blocks/BOUNCEXY.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'BOUNCEXY']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/BPLATFORM.xsl b/blocks/xcos2xml/blocks/BPLATFORM.xsl new file mode 100644 index 00000000..5d9599e4 --- /dev/null +++ b/blocks/xcos2xml/blocks/BPLATFORM.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'BPLATFORM']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/Bache.xsl b/blocks/xcos2xml/blocks/Bache.xsl new file mode 100644 index 00000000..e4384f2d --- /dev/null +++ b/blocks/xcos2xml/blocks/Bache.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'Bache']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/CANIMXY.xsl b/blocks/xcos2xml/blocks/CANIMXY.xsl new file mode 100644 index 00000000..0d010055 --- /dev/null +++ b/blocks/xcos2xml/blocks/CANIMXY.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'CANIMXY']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/CANIMXY3D.xsl b/blocks/xcos2xml/blocks/CANIMXY3D.xsl new file mode 100644 index 00000000..aa010b7a --- /dev/null +++ b/blocks/xcos2xml/blocks/CANIMXY3D.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'CANIMXY3D']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/CBLOCK.xsl b/blocks/xcos2xml/blocks/CBLOCK.xsl new file mode 100644 index 00000000..17dd6e94 --- /dev/null +++ b/blocks/xcos2xml/blocks/CBLOCK.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'CBLOCK']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/CBLOCK4.xsl b/blocks/xcos2xml/blocks/CBLOCK4.xsl new file mode 100644 index 00000000..3c816834 --- /dev/null +++ b/blocks/xcos2xml/blocks/CBLOCK4.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'CBLOCK4']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/CEVENTSCOPE.xsl b/blocks/xcos2xml/blocks/CEVENTSCOPE.xsl new file mode 100644 index 00000000..6961b54e --- /dev/null +++ b/blocks/xcos2xml/blocks/CEVENTSCOPE.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'CEVENTSCOPE']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/CFSCOPE.xsl b/blocks/xcos2xml/blocks/CFSCOPE.xsl new file mode 100644 index 00000000..38da485b --- /dev/null +++ b/blocks/xcos2xml/blocks/CFSCOPE.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'CFSCOPE']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/CLKFROM.xsl b/blocks/xcos2xml/blocks/CLKFROM.xsl new file mode 100644 index 00000000..190d3782 --- /dev/null +++ b/blocks/xcos2xml/blocks/CLKFROM.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'CLKFROM']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/CLKGOTO.xsl b/blocks/xcos2xml/blocks/CLKGOTO.xsl new file mode 100644 index 00000000..a4f51939 --- /dev/null +++ b/blocks/xcos2xml/blocks/CLKGOTO.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'CLKGOTO']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/CLKGotoTagVisibility.xsl b/blocks/xcos2xml/blocks/CLKGotoTagVisibility.xsl new file mode 100644 index 00000000..613e866a --- /dev/null +++ b/blocks/xcos2xml/blocks/CLKGotoTagVisibility.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'CLKGotoTagVisibility']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/CLKINV_f.xsl b/blocks/xcos2xml/blocks/CLKINV_f.xsl new file mode 100644 index 00000000..8331001f --- /dev/null +++ b/blocks/xcos2xml/blocks/CLKINV_f.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'CLKINV_f']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/CLKOUTV_f.xsl b/blocks/xcos2xml/blocks/CLKOUTV_f.xsl new file mode 100644 index 00000000..7d2a57d7 --- /dev/null +++ b/blocks/xcos2xml/blocks/CLKOUTV_f.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'CLKOUTV_f']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/CLOCK_c.xsl b/blocks/xcos2xml/blocks/CLOCK_c.xsl new file mode 100644 index 00000000..cf838ea2 --- /dev/null +++ b/blocks/xcos2xml/blocks/CLOCK_c.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName='CLOCK_c']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">0</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">1</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object p000_value="0.1" p001_value="0.1" as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/CLR.xsl b/blocks/xcos2xml/blocks/CLR.xsl new file mode 100644 index 00000000..6e517d19 --- /dev/null +++ b/blocks/xcos2xml/blocks/CLR.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName='CLR']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="100,s<SUP>2</SUP>+ 12*s + 100" as="displayProperties"/> + <Object p000_value="100" p001_value="s^2 + 12*s + 100" as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/CLSS.xsl b/blocks/xcos2xml/blocks/CLSS.xsl new file mode 100644 index 00000000..ed2d5cf7 --- /dev/null +++ b/blocks/xcos2xml/blocks/CLSS.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'CLSS']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/CMAT3D.xsl b/blocks/xcos2xml/blocks/CMAT3D.xsl new file mode 100644 index 00000000..36756054 --- /dev/null +++ b/blocks/xcos2xml/blocks/CMAT3D.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'CMAT3D']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/CMATVIEW.xsl b/blocks/xcos2xml/blocks/CMATVIEW.xsl new file mode 100644 index 00000000..84934f40 --- /dev/null +++ b/blocks/xcos2xml/blocks/CMATVIEW.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'CMATVIEW']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/CMSCOPE.xsl b/blocks/xcos2xml/blocks/CMSCOPE.xsl new file mode 100644 index 00000000..57e09b30 --- /dev/null +++ b/blocks/xcos2xml/blocks/CMSCOPE.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'CMSCOPE']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/CONST.xsl b/blocks/xcos2xml/blocks/CONST.xsl new file mode 100644 index 00000000..0d060221 --- /dev/null +++ b/blocks/xcos2xml/blocks/CONST.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'CONST']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/CONSTRAINT2_c.xsl b/blocks/xcos2xml/blocks/CONSTRAINT2_c.xsl new file mode 100644 index 00000000..1d9b1ea3 --- /dev/null +++ b/blocks/xcos2xml/blocks/CONSTRAINT2_c.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'CONSTRAINT2_c']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/CONSTRAINT_c.xsl b/blocks/xcos2xml/blocks/CONSTRAINT_c.xsl new file mode 100644 index 00000000..8db19fea --- /dev/null +++ b/blocks/xcos2xml/blocks/CONSTRAINT_c.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'CONSTRAINT_c']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/CONST_f.xsl b/blocks/xcos2xml/blocks/CONST_f.xsl new file mode 100644 index 00000000..03d70c0a --- /dev/null +++ b/blocks/xcos2xml/blocks/CONST_f.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'CONST_f']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/CONST_m.xsl b/blocks/xcos2xml/blocks/CONST_m.xsl new file mode 100644 index 00000000..4955ce11 --- /dev/null +++ b/blocks/xcos2xml/blocks/CONST_m.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'CONST_m']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/CONVERT.xsl b/blocks/xcos2xml/blocks/CONVERT.xsl new file mode 100644 index 00000000..610d9ed6 --- /dev/null +++ b/blocks/xcos2xml/blocks/CONVERT.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'CONVERT']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/CSCOPE.xsl b/blocks/xcos2xml/blocks/CSCOPE.xsl new file mode 100644 index 00000000..aff32a0d --- /dev/null +++ b/blocks/xcos2xml/blocks/CSCOPE.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName='CSCOPE']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object p000_value="1 3 5 7 9 11 13 15" p001_value="-1" p002_value="[]" p003_value="[600;400]" p004_value="-2" p005_value="2" p006_value="30" p007_value="20" p008_value="0" p009_value="" as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/CSCOPXY.xsl b/blocks/xcos2xml/blocks/CSCOPXY.xsl new file mode 100644 index 00000000..dcf5ff25 --- /dev/null +++ b/blocks/xcos2xml/blocks/CSCOPXY.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'CSCOPXY']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/CSCOPXY3D.xsl b/blocks/xcos2xml/blocks/CSCOPXY3D.xsl new file mode 100644 index 00000000..dab28375 --- /dev/null +++ b/blocks/xcos2xml/blocks/CSCOPXY3D.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'CSCOPXY3D']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/CUMSUM.xsl b/blocks/xcos2xml/blocks/CUMSUM.xsl new file mode 100644 index 00000000..8362f556 --- /dev/null +++ b/blocks/xcos2xml/blocks/CUMSUM.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'CUMSUM']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/CURV_f.xsl b/blocks/xcos2xml/blocks/CURV_f.xsl new file mode 100644 index 00000000..cec398b5 --- /dev/null +++ b/blocks/xcos2xml/blocks/CURV_f.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'CURV_f']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/Capacitor.xsl b/blocks/xcos2xml/blocks/Capacitor.xsl new file mode 100644 index 00000000..32246ec9 --- /dev/null +++ b/blocks/xcos2xml/blocks/Capacitor.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'Capacitor']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/ConstantVoltage.xsl b/blocks/xcos2xml/blocks/ConstantVoltage.xsl new file mode 100644 index 00000000..0f2c3e8c --- /dev/null +++ b/blocks/xcos2xml/blocks/ConstantVoltage.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'ConstantVoltage']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/Counter.xsl b/blocks/xcos2xml/blocks/Counter.xsl new file mode 100644 index 00000000..25bbc94c --- /dev/null +++ b/blocks/xcos2xml/blocks/Counter.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'Counter']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/DEADBAND.xsl b/blocks/xcos2xml/blocks/DEADBAND.xsl new file mode 100644 index 00000000..62b961a0 --- /dev/null +++ b/blocks/xcos2xml/blocks/DEADBAND.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'DEADBAND']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/DEBUG.xsl b/blocks/xcos2xml/blocks/DEBUG.xsl new file mode 100644 index 00000000..01b3bd35 --- /dev/null +++ b/blocks/xcos2xml/blocks/DEBUG.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'DEBUG']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/DELAYV_f.xsl b/blocks/xcos2xml/blocks/DELAYV_f.xsl new file mode 100644 index 00000000..2eb1e8ff --- /dev/null +++ b/blocks/xcos2xml/blocks/DELAYV_f.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'DELAYV_f']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/DELAY_f.xsl b/blocks/xcos2xml/blocks/DELAY_f.xsl new file mode 100644 index 00000000..c883712f --- /dev/null +++ b/blocks/xcos2xml/blocks/DELAY_f.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'DELAY_f']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/DEMUX.xsl b/blocks/xcos2xml/blocks/DEMUX.xsl new file mode 100644 index 00000000..6ff5d681 --- /dev/null +++ b/blocks/xcos2xml/blocks/DEMUX.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'DEMUX']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/DEMUX_f.xsl b/blocks/xcos2xml/blocks/DEMUX_f.xsl new file mode 100644 index 00000000..c1fdb85f --- /dev/null +++ b/blocks/xcos2xml/blocks/DEMUX_f.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'DEMUX_f']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/DIFF_f.xsl b/blocks/xcos2xml/blocks/DIFF_f.xsl new file mode 100644 index 00000000..d1b20c92 --- /dev/null +++ b/blocks/xcos2xml/blocks/DIFF_f.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'DIFF_f']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/DLR.xsl b/blocks/xcos2xml/blocks/DLR.xsl new file mode 100644 index 00000000..3e63f4a7 --- /dev/null +++ b/blocks/xcos2xml/blocks/DLR.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'DLR']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/DLRADAPT_f.xsl b/blocks/xcos2xml/blocks/DLRADAPT_f.xsl new file mode 100644 index 00000000..2b07226e --- /dev/null +++ b/blocks/xcos2xml/blocks/DLRADAPT_f.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'DLRADAPT_f']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/DLSS.xsl b/blocks/xcos2xml/blocks/DLSS.xsl new file mode 100644 index 00000000..de830e9d --- /dev/null +++ b/blocks/xcos2xml/blocks/DLSS.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'DLSS']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/DOLLAR.xsl b/blocks/xcos2xml/blocks/DOLLAR.xsl new file mode 100644 index 00000000..4de1737f --- /dev/null +++ b/blocks/xcos2xml/blocks/DOLLAR.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'DOLLAR']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/DOLLAR_f.xsl b/blocks/xcos2xml/blocks/DOLLAR_f.xsl new file mode 100644 index 00000000..5ce808de --- /dev/null +++ b/blocks/xcos2xml/blocks/DOLLAR_f.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'DOLLAR_f']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/DOLLAR_m.xsl b/blocks/xcos2xml/blocks/DOLLAR_m.xsl new file mode 100644 index 00000000..2d02bdee --- /dev/null +++ b/blocks/xcos2xml/blocks/DOLLAR_m.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'DOLLAR_m']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/Diode.xsl b/blocks/xcos2xml/blocks/Diode.xsl new file mode 100644 index 00000000..5d4569c7 --- /dev/null +++ b/blocks/xcos2xml/blocks/Diode.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'Diode']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/EDGE_TRIGGER.xsl b/blocks/xcos2xml/blocks/EDGE_TRIGGER.xsl new file mode 100644 index 00000000..e1f1db77 --- /dev/null +++ b/blocks/xcos2xml/blocks/EDGE_TRIGGER.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'EDGE_TRIGGER']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/ENDBLK.xsl b/blocks/xcos2xml/blocks/ENDBLK.xsl new file mode 100644 index 00000000..b55fcc97 --- /dev/null +++ b/blocks/xcos2xml/blocks/ENDBLK.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'ENDBLK']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/END_c.xsl b/blocks/xcos2xml/blocks/END_c.xsl new file mode 100644 index 00000000..7f84d724 --- /dev/null +++ b/blocks/xcos2xml/blocks/END_c.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'END_c']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/ESELECT_f.xsl b/blocks/xcos2xml/blocks/ESELECT_f.xsl new file mode 100644 index 00000000..76fb7f6e --- /dev/null +++ b/blocks/xcos2xml/blocks/ESELECT_f.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'ESELECT_f']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/EVTDLY_c.xsl b/blocks/xcos2xml/blocks/EVTDLY_c.xsl new file mode 100644 index 00000000..6b9c0918 --- /dev/null +++ b/blocks/xcos2xml/blocks/EVTDLY_c.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'EVTDLY_c']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/EVTGEN_f.xsl b/blocks/xcos2xml/blocks/EVTGEN_f.xsl new file mode 100644 index 00000000..5ff0959a --- /dev/null +++ b/blocks/xcos2xml/blocks/EVTGEN_f.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'EVTGEN_f']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/EVTVARDLY.xsl b/blocks/xcos2xml/blocks/EVTVARDLY.xsl new file mode 100644 index 00000000..63412e18 --- /dev/null +++ b/blocks/xcos2xml/blocks/EVTVARDLY.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'EVTVARDLY']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/EXPBLK_m.xsl b/blocks/xcos2xml/blocks/EXPBLK_m.xsl new file mode 100644 index 00000000..066c20a4 --- /dev/null +++ b/blocks/xcos2xml/blocks/EXPBLK_m.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'EXPBLK_m']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/EXTRACT.xsl b/blocks/xcos2xml/blocks/EXTRACT.xsl new file mode 100644 index 00000000..79a88616 --- /dev/null +++ b/blocks/xcos2xml/blocks/EXTRACT.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'EXTRACT']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/EXTRACTBITS.xsl b/blocks/xcos2xml/blocks/EXTRACTBITS.xsl new file mode 100644 index 00000000..4c2d5fed --- /dev/null +++ b/blocks/xcos2xml/blocks/EXTRACTBITS.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'EXTRACTBITS']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/EXTRACTOR.xsl b/blocks/xcos2xml/blocks/EXTRACTOR.xsl new file mode 100644 index 00000000..0e15294e --- /dev/null +++ b/blocks/xcos2xml/blocks/EXTRACTOR.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'EXTRACTOR']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/EXTTRI.xsl b/blocks/xcos2xml/blocks/EXTTRI.xsl new file mode 100644 index 00000000..b1d1cda2 --- /dev/null +++ b/blocks/xcos2xml/blocks/EXTTRI.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'EXTTRI']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/FROM.xsl b/blocks/xcos2xml/blocks/FROM.xsl new file mode 100644 index 00000000..a8c892d5 --- /dev/null +++ b/blocks/xcos2xml/blocks/FROM.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'FROM']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/FROMMO.xsl b/blocks/xcos2xml/blocks/FROMMO.xsl new file mode 100644 index 00000000..0b430a2d --- /dev/null +++ b/blocks/xcos2xml/blocks/FROMMO.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'FROMMO']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/FROMWSB.xsl b/blocks/xcos2xml/blocks/FROMWSB.xsl new file mode 100644 index 00000000..cd5edf9d --- /dev/null +++ b/blocks/xcos2xml/blocks/FROMWSB.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'FROMWSB']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/STEP_FUNCTION.xsl b/blocks/xcos2xml/blocks/STEP_FUNCTION.xsl new file mode 100644 index 00000000..56fb9f2f --- /dev/null +++ b/blocks/xcos2xml/blocks/STEP_FUNCTION.xsl @@ -0,0 +1,81 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName='STEP_FUNCTION']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">0</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object p000_value="1" p001_value="0" p002_value="1" as="parameter_values"/> + + </xsl:element> + </xsl:template> + <xsl:template name="mxGeometry" match="mxGeometry"> + <xsl:element name="mxGeometry"> + <xsl:if test="@x"> + <xsl:attribute name="x"> + <xsl:value-of select="@x" /> + </xsl:attribute> + </xsl:if> + <xsl:if test="@y"> + <xsl:attribute name="y"> + <xsl:value-of select="@y" /> + </xsl:attribute> + </xsl:if> + <xsl:if test="@width"> + <xsl:attribute name="width"> + <xsl:value-of select="@width" /> + </xsl:attribute> + </xsl:if> + <xsl:if test="@height"> + <xsl:attribute name="height"> + <xsl:value-of select="@height" /> + </xsl:attribute> + </xsl:if> + <xsl:if test="@relative"> + <xsl:attribute name="relative"> + <xsl:value-of select="@relative" /> + </xsl:attribute> + </xsl:if> + <xsl:if test="@as"> + <xsl:attribute name="as"> + <xsl:value-of select="@as" /> + </xsl:attribute> + </xsl:if> + <xsl:apply-templates /> + </xsl:element> + </xsl:template> + <xsl:template name="mxPoint" match="mxPoint"> + <xsl:element name="mxPoint"> + <xsl:if test="@as"> + <xsl:attribute name="as"> + <xsl:value-of select="@as" /> + </xsl:attribute> + </xsl:if> + <xsl:if test="@y"> + <xsl:attribute name="y"> + <xsl:value-of select="@y" /> + </xsl:attribute> + </xsl:if> + <!-- <xsl:apply-templates /> --> + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/c_block.xsl b/blocks/xcos2xml/blocks/c_block.xsl new file mode 100644 index 00000000..b9148f0d --- /dev/null +++ b/blocks/xcos2xml/blocks/c_block.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'c_block']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/fortran_block.xsl b/blocks/xcos2xml/blocks/fortran_block.xsl new file mode 100644 index 00000000..847253ec --- /dev/null +++ b/blocks/xcos2xml/blocks/fortran_block.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'fortran_block']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/blocks/freq_div.xsl b/blocks/xcos2xml/blocks/freq_div.xsl new file mode 100644 index 00000000..c4e93f98 --- /dev/null +++ b/blocks/xcos2xml/blocks/freq_div.xsl @@ -0,0 +1,31 @@ + <xsl:template match="BasicBlock[@interfaceFunctionName = 'freq_div']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts">1</xsl:attribute> + <xsl:attribute name="implicitInputPorts">0</xsl:attribute> + <xsl:attribute name="explicitOutputPorts">1</xsl:attribute> + <xsl:attribute name="implicitOutputPorts">0</xsl:attribute> + <xsl:attribute name="controlPorts">0</xsl:attribute> + <xsl:attribute name="commandPorts">0</xsl:attribute> + <xsl:attribute name="simulationFunction"> + <xsl:value-of select="@simulationFunctionName" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/links/CommandControlLink.xsl b/blocks/xcos2xml/links/CommandControlLink.xsl new file mode 100644 index 00000000..34f49a0c --- /dev/null +++ b/blocks/xcos2xml/links/CommandControlLink.xsl @@ -0,0 +1,23 @@ + <xsl:template match="CommandControlLink[@style='CommandControlLink']"> + <xsl:element name="mxCell"> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="edge">1</xsl:attribute> + <xsl:attribute name="sourceVertex"> + <xsl:value-of select="@source" /> + </xsl:attribute> + <xsl:attribute name="targetVertex"> + <xsl:value-of select="@target" /> + </xsl:attribute> + <xsl:attribute name="node">.null</xsl:attribute> + <xsl:attribute name="CellType">Unknown</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <xsl:apply-templates /> + <Object as="parameter_values"/> + <Object as="displayProperties"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/links/ExplicitLink.xsl b/blocks/xcos2xml/links/ExplicitLink.xsl new file mode 100644 index 00000000..8f83ceae --- /dev/null +++ b/blocks/xcos2xml/links/ExplicitLink.xsl @@ -0,0 +1,23 @@ + <xsl:template match="ExplicitLink[@style='ExplicitLink']"> + <xsl:element name="mxCell"> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="edge">1</xsl:attribute> + <xsl:attribute name="sourceVertex"> + <xsl:value-of select="@source" /> + </xsl:attribute> + <xsl:attribute name="targetVertex"> + <xsl:value-of select="@target" /> + </xsl:attribute> + <xsl:attribute name="node">.null</xsl:attribute> + <xsl:attribute name="CellType">Unknown</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <xsl:apply-templates /> + <Object as="parameter_values"/> + <Object as="displayProperties"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/links/ImplicitLink.xsl b/blocks/xcos2xml/links/ImplicitLink.xsl new file mode 100644 index 00000000..c6bfbb85 --- /dev/null +++ b/blocks/xcos2xml/links/ImplicitLink.xsl @@ -0,0 +1,23 @@ + <xsl:template match="ImplicitLink[@style='ImplicitLink']"> + <xsl:element name="mxCell"> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="edge">1</xsl:attribute> + <xsl:attribute name="sourceVertex"> + <xsl:value-of select="@source" /> + </xsl:attribute> + <xsl:attribute name="targetVertex"> + <xsl:value-of select="@target" /> + </xsl:attribute> + <xsl:attribute name="node">.null</xsl:attribute> + <xsl:attribute name="CellType">Unknown</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <xsl:apply-templates /> + <Object as="parameter_values"/> + <Object as="displayProperties"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/ports/CommandPort.xsl b/blocks/xcos2xml/ports/CommandPort.xsl new file mode 100644 index 00000000..9086fa97 --- /dev/null +++ b/blocks/xcos2xml/ports/CommandPort.xsl @@ -0,0 +1,26 @@ + <xsl:template match="CommandPort[@style='CommandPort']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="CellType">Pin</xsl:attribute> + <xsl:attribute name="ParentComponent"> + <xsl:value-of select="@parent" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <mxGeometry x="0.5" y="1" width="8" height="8" relative="1" as="geometry"> + <mxPoint x="-4" as="offset"/> + </mxGeometry> + <xsl:apply-templates select="node()"/> + <Object as="parameter_values"/> + <Object as="displayProperties"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/ports/ControlPort.xsl b/blocks/xcos2xml/ports/ControlPort.xsl new file mode 100644 index 00000000..e06df860 --- /dev/null +++ b/blocks/xcos2xml/ports/ControlPort.xsl @@ -0,0 +1,26 @@ + <xsl:template match="ControlPort[@style='ControlPort']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="CellType">Pin</xsl:attribute> + <xsl:attribute name="ParentComponent"> + <xsl:value-of select="@parent" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <mxGeometry x="0.5" width="8" height="8" relative="1" as="geometry"> + <mxPoint x="-4" y="-8" as="offset"/> + </mxGeometry> + <xsl:apply-templates select="node()"/> + <Object as="parameter_values"/> + <Object as="displayProperties"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/ports/ExplicitInputPort.xsl b/blocks/xcos2xml/ports/ExplicitInputPort.xsl new file mode 100644 index 00000000..df830881 --- /dev/null +++ b/blocks/xcos2xml/ports/ExplicitInputPort.xsl @@ -0,0 +1,26 @@ + <xsl:template match="ExplicitInputPort[@style='ExplicitInputPort']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="CellType">Pin</xsl:attribute> + <xsl:attribute name="ParentComponent"> + <xsl:value-of select="@parent" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <mxGeometry y="0.5" width="8" height="8" relative="1" as="geometry"> + <mxPoint x="-8" y="-4" as="offset"/> + </mxGeometry> + <xsl:apply-templates select="node()"/> + <Object as="parameter_values"/> + <Object as="displayProperties"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/ports/ExplicitOutputPort.xsl b/blocks/xcos2xml/ports/ExplicitOutputPort.xsl new file mode 100644 index 00000000..41cd5bb8 --- /dev/null +++ b/blocks/xcos2xml/ports/ExplicitOutputPort.xsl @@ -0,0 +1,26 @@ + <xsl:template match="ExplicitOutputPort[@style='ExplicitOutputPort']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="CellType">Pin</xsl:attribute> + <xsl:attribute name="ParentComponent"> + <xsl:value-of select="@parent" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <mxGeometry x="1" y="0.5" width="8" height="8" relative="1" as="geometry"> + <mxPoint y="-4" as="offset"/> + </mxGeometry> + <xsl:apply-templates select="node()"/> + <Object as="parameter_values"/> + <Object as="displayProperties"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/ports/ImplicitInputPort.xsl b/blocks/xcos2xml/ports/ImplicitInputPort.xsl new file mode 100644 index 00000000..f264d98d --- /dev/null +++ b/blocks/xcos2xml/ports/ImplicitInputPort.xsl @@ -0,0 +1,23 @@ + <xsl:template match="ImplicitInputPort[@style='ImplicitInputPort']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="CellType">Pin</xsl:attribute> + <xsl:attribute name="ParentComponent"> + <xsl:value-of select="@parent" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> diff --git a/blocks/xcos2xml/ports/ImplicitOutputPort.xsl b/blocks/xcos2xml/ports/ImplicitOutputPort.xsl new file mode 100644 index 00000000..92010982 --- /dev/null +++ b/blocks/xcos2xml/ports/ImplicitOutputPort.xsl @@ -0,0 +1,23 @@ + <xsl:template match="ImplicitOutputPort[@style='ImplicitOutputPort']"> + <xsl:element name="mxCell"> + <xsl:attribute name="style"> + <xsl:value-of select="@style" /> + </xsl:attribute> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="CellType">Pin</xsl:attribute> + <xsl:attribute name="ParentComponent"> + <xsl:value-of select="@parent" /> + </xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> + <xsl:apply-templates select="node()"/> + <Object display_parameter="" as="displayProperties"/> + <Object as="parameter_values"/> + + </xsl:element> + </xsl:template> |