Skip to content
Snippets Groups Projects
Commit c429368a authored by Martin Killenberg's avatar Martin Killenberg
Browse files

changed xml schema to have D_spectrum on the same lavel as property (which is...

changed xml schema to have D_spectrum on the same lavel as property (which is going to be renamed to auto_property)
parent 661b626c
No related branches found
No related tags found
No related merge requests found
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<device_server xmlns="https://github.com/ChimeraTK/ControlSystemAdapter-DoocsAdapter"> <device_server xmlns="https://github.com/ChimeraTK/ControlSystemAdapter-DoocsAdapter">
<location name="A"> <location name="A">
<property source="fromDeviceArray1"> <D_spectrum source="fromDeviceArray1"/>
<doocs_type><D_spectrum/></doocs_type> <D_spectrum source="fromDeviceArray2">
</property> <start>123.</start>
<property source="fromDeviceArray2"> <increment>0.56</increment>
<doocs_type> </D_spectrum>
<D_spectrum>
<start>123.</start>
<increment>0.56</increment>
</D_spectrum>
</doocs_type>
</property>
</location> </location>
</device_server> </device_server>
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<device_server xmlns="https://github.com/ChimeraTK/ControlSystemAdapter-DoocsAdapter"> <device_server xmlns="https://github.com/ChimeraTK/ControlSystemAdapter-DoocsAdapter">
<location name="A"> <location name="A">
<property source="a/do"> <D_spectrum source="a/do"/>
<doocs_type><D_spectrum/></doocs_type> <D_spectrum source="a/di">
</property> <start>123.</start>
<property source="a/di"> <increment>0.56</increment>
<doocs_type> </D_spectrum>
<D_spectrum>
<start>123.</start>
<increment>0.56</increment>
</D_spectrum>
</doocs_type>
</property>
</location> </location>
</device_server> </device_server>
...@@ -24,17 +24,24 @@ ...@@ -24,17 +24,24 @@
<xs:complexType name="Location"> <xs:complexType name="Location">
<xs:sequence> <xs:sequence>
<xs:group ref="PropertyDetails"/> <xs:group ref="PropertyDetails" minOccurs="0"/>
<xs:element name="property" type="Property" minOccurs="0" maxOccurs="unbounded"/> <xs:group ref="Property" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="import" type="LocationImport" minOccurs="0" maxOccurs="unbounded"/> <xs:element name="import" type="LocationImport" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence> </xs:sequence>
<xs:attribute name="name" type="xs:string" use="required"/> <xs:attribute name="name" type="xs:string" use="required"/>
</xs:complexType> </xs:complexType>
<xs:complexType name="Property"> <!-- The property group basically is the choice of the different property types we have-->
<xs:group name="Property">
<xs:choice>
<xs:element name="property" type="AutoProperty"/>
<xs:element name="D_spectrum" type="D_spectrum"/>
</xs:choice>
</xs:group>
<xs:complexType name="AutoProperty">
<xs:sequence> <xs:sequence>
<xs:group ref="PropertyDetails"/> <xs:group ref="PropertyDetails" minOccurs="0"/>
<xs:element name= "doocs_type" type="DoocsType" minOccurs="0"/>
</xs:sequence> </xs:sequence>
<xs:attribute name="source" type="xs:string" use="required"/> <xs:attribute name="source" type="xs:string" use="required"/>
<xs:attribute name="name" type="xs:string"/> <xs:attribute name="name" type="xs:string"/>
...@@ -55,16 +62,6 @@ ...@@ -55,16 +62,6 @@
</xs:sequence> </xs:sequence>
</xs:group> </xs:group>
<xs:complexType name="DoocsType">
<xs:choice>
<xs:element name="D_spectrum" type="D_spectrum"/>
<xs:element name="automatic" type="Empty"/>
<!-- Add more doocs types here. -->
</xs:choice>
</xs:complexType>
<xs:complexType name="Empty"/>
<xs:complexType name="LocationImport"> <xs:complexType name="LocationImport">
<xs:simpleContent> <xs:simpleContent>
<xs:extension base="xs:string"> <xs:extension base="xs:string">
...@@ -75,9 +72,12 @@ ...@@ -75,9 +72,12 @@
<xs:complexType name="D_spectrum"> <xs:complexType name="D_spectrum">
<xs:sequence> <xs:sequence>
<xs:group ref="PropertyDetails" minOccurs="0"/>
<xs:element name="start" type="xs:float" default="0.0" minOccurs="0"/> <xs:element name="start" type="xs:float" default="0.0" minOccurs="0"/>
<xs:element name="increment" type="xs:float" default="1.0" minOccurs="0"/> <xs:element name="increment" type="xs:float" default="1.0" minOccurs="0"/>
</xs:sequence> </xs:sequence>
<xs:attribute name="source" type="xs:string" use="required"/>
<xs:attribute name="name" type="xs:string"/>
</xs:complexType> </xs:complexType>
</xs:schema> </xs:schema>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment