128 lines
6.4 KiB
XML
128 lines
6.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<?xml-stylesheet href="../schema2xhtml.xsl" type="text/xsl"?>
|
|
|
|
<!-- This schema is part of JMRI. Copyright 2018. -->
|
|
<!-- -->
|
|
<!-- JMRI is free software; you can redistribute it and/or modify it under -->
|
|
<!-- the terms of version 2 of the GNU General Public License as published -->
|
|
<!-- by the Free Software Foundation. See the "COPYING" file for a copy -->
|
|
<!-- of this license. -->
|
|
<!-- -->
|
|
<!-- JMRI is distributed in the hope that it will be useful, but WITHOUT -->
|
|
<!-- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -->
|
|
<!-- FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -->
|
|
<!-- for more details. -->
|
|
|
|
<!-- This file contains definitions for LogixNG -->
|
|
|
|
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
|
xmlns:xsi ="http://www.w3.org/2001/XMLSchema-instance"
|
|
xmlns:docbook="http://docbook.org/ns/docbook"
|
|
xmlns:jmri="http://jmri.org/xml/schema/JMRIschema"
|
|
xsi:schemaLocation="
|
|
http://jmri.org/xml/schema/JMRIschema http://jmri.org/xml/schema/JMRIschema.xsd
|
|
http://docbook.org/ns/docbook http://jmri.org/xml/schema/docbook/docbook.xsd
|
|
"
|
|
>
|
|
|
|
<xs:complexType name="LogixNG_DigitalAction_ActionLocalVariableType">
|
|
<xs:annotation>
|
|
<xs:documentation>
|
|
Define the XML stucture for storing the contents of a ActionLocalVariable class.
|
|
</xs:documentation>
|
|
<xs:appinfo>
|
|
<jmri:usingclass configurexml="true">jmri.jmrit.logixng.digital.actions.configurexml.ActionLocalVariableXml</jmri:usingclass>
|
|
</xs:appinfo>
|
|
</xs:annotation>
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="systemName" type="systemNameType" minOccurs="1" maxOccurs="1"/>
|
|
<xs:element name="userName" type="userNameType" minOccurs="0" maxOccurs="1"/>
|
|
<xs:element name="comment" type="commentType" minOccurs="0" maxOccurs="unbounded"/>
|
|
<xs:element name="variable" type="xs:string" minOccurs="0" maxOccurs="1"/>
|
|
|
|
<xs:element name="memoryNamedBean" type="LogixNG_SelectNamedBeanType" minOccurs="0" maxOccurs="1" />
|
|
<xs:element name="listenToMemory" type="yesNoType" minOccurs="0" maxOccurs="1"/>
|
|
|
|
<xs:element name="blockNamedBean" type="LogixNG_SelectNamedBeanType" minOccurs="0" maxOccurs="1" />
|
|
<xs:element name="listenToBlock" type="yesNoType" minOccurs="0" maxOccurs="1"/>
|
|
|
|
<xs:element name="reporterNamedBean" type="LogixNG_SelectNamedBeanType" minOccurs="0" maxOccurs="1" />
|
|
<xs:element name="listenToReporter" type="yesNoType" minOccurs="0" maxOccurs="1"/>
|
|
|
|
<!-- These are for backwards compability up until JMRI 4.99.5 -->
|
|
<xs:element name="memory" minOccurs="0" maxOccurs="1">
|
|
<xs:complexType>
|
|
<xs:simpleContent>
|
|
<xs:extension base="beanNameType">
|
|
<xs:attribute name="listen" type="yesNoType"/>
|
|
</xs:extension>
|
|
</xs:simpleContent>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
<xs:element name="block" minOccurs="0" maxOccurs="1">
|
|
<xs:complexType>
|
|
<xs:simpleContent>
|
|
<xs:extension base="beanNameType">
|
|
<xs:attribute name="listen" type="yesNoType"/>
|
|
</xs:extension>
|
|
</xs:simpleContent>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
<xs:element name="reporter" minOccurs="0" maxOccurs="1">
|
|
<xs:complexType>
|
|
<xs:simpleContent>
|
|
<xs:extension base="beanNameType">
|
|
<xs:attribute name="listen" type="yesNoType"/>
|
|
</xs:extension>
|
|
</xs:simpleContent>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
<!-- These are for backwards compability up until JMRI 4.99.5 -->
|
|
|
|
<xs:element name="variableOperation" minOccurs="0" maxOccurs="1">
|
|
<xs:simpleType>
|
|
<xs:restriction base="xs:token">
|
|
<xs:enumeration value="SetToNull"/>
|
|
<xs:enumeration value="SetToString"/>
|
|
<xs:enumeration value="CopyVariableToVariable"/>
|
|
<xs:enumeration value="CopyMemoryToVariable"/>
|
|
<xs:enumeration value="CopyReferenceToVariable"/>
|
|
<xs:enumeration value="CopyTableCellToVariable"/>
|
|
<xs:enumeration value="CopyBlockToVariable"/>
|
|
<xs:enumeration value="CopyReporterToVariable"/>
|
|
<xs:enumeration value="CalculateFormula"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
</xs:element>
|
|
|
|
<xs:element name="constantType" minOccurs="0" maxOccurs="1">
|
|
<xs:simpleType>
|
|
<xs:restriction base="xs:token">
|
|
<xs:enumeration value="String"/>
|
|
<xs:enumeration value="Integer"/>
|
|
<xs:enumeration value="FloatingNumber"/>
|
|
<xs:enumeration value="Boolean"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
</xs:element>
|
|
|
|
<xs:element name="constant" type="xs:string" minOccurs="0" maxOccurs="1"/>
|
|
<xs:element name="otherTableCell" type="xs:string" minOccurs="0" maxOccurs="1"/>
|
|
<xs:element name="otherVariable" type="xs:string" minOccurs="0" maxOccurs="1"/>
|
|
<xs:element name="reference" type="xs:string" minOccurs="0" maxOccurs="1"/>
|
|
<xs:element name="formula" type="xs:string" minOccurs="0" maxOccurs="1"/>
|
|
|
|
<xs:element name="table" type="LogixNG_SelectTableType" minOccurs="0" maxOccurs="1"/>
|
|
|
|
<xs:element name="MaleSocket" type="LogixNG_MaleSocket_Type" minOccurs="0" maxOccurs="1"/>
|
|
|
|
</xs:sequence>
|
|
|
|
<xs:attribute name="class" type="classType" use="required"/>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:schema>
|