Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ControlSystemAdapter-DoocsAdapter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ChimeraTK Mirror
ControlSystemAdapter-DoocsAdapter
Commits
aee84e8b
Commit
aee84e8b
authored
7 years ago
by
Martin Killenberg
Browse files
Options
Downloads
Patches
Plain Diff
first variable tree xml that validates against a schema. Not really useful yet.
parent
329bb047
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/variableTreeXml/simpleTree.xml
+13
-0
13 additions, 0 deletions
tests/variableTreeXml/simpleTree.xml
xmlschema/doocs_variable_tree.xsd
+57
-0
57 additions, 0 deletions
xmlschema/doocs_variable_tree.xsd
with
70 additions
and
0 deletions
tests/variableTreeXml/simpleTree.xml
0 → 100644
+
13
−
0
View file @
aee84e8b
<?xml version="1.0" encoding="UTF-8"?>
<doocs_variable_tree
xmlns=
"https://github.com/ChimeraTK/ControlSystemAdapter-DoocsAdapter"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"https://github.com/ChimeraTK/ControlSystemAdapter-DoocsAdapter doocs_variable_tree.xsd"
>
<facility>
<device>
<location>
<property
source=
"A/b/cd/e"
>
<has_history/>
<is_constant/>
</property>
</location>
</device>
</facility>
</doocs_variable_tree>
This diff is collapsed.
Click to expand it.
xmlschema/doocs_variable_tree.xsd
0 → 100644
+
57
−
0
View file @
aee84e8b
<?xml version="1.0"?>
<xs:schema
xmlns:xs=
"http://www.w3.org/2001/XMLSchema"
targetNamespace=
"https://github.com/ChimeraTK/ControlSystemAdapter-DoocsAdapter"
xmlns=
"https://github.com/ChimeraTK/ControlSystemAdapter-DoocsAdapter"
elementFormDefault=
"qualified"
attributeFormDefault=
"unqualified"
>
<xs:annotation>
<xs:documentation
xml:lang=
"en"
>
Variable tree definition for the ChimeraTK DOOCS Adapter.
NOTE: This is a first draft version! Do not use for production!
</xs:documentation>
</xs:annotation>
<xs:element
name=
"doocs_variable_tree"
type=
"DoocsTreeType"
/>
<xs:complexType
name=
"DoocsTreeType"
>
<xs:sequence>
<xs:element
name=
"facility"
type=
"FacilityType"
maxOccurs=
"unbounded"
/>
</xs:sequence>
</xs:complexType>
<xs:complexType
name=
"FacilityType"
>
<xs:sequence>
<xs:element
name=
"device"
type=
"DeviceType"
maxOccurs=
"unbounded"
/>
</xs:sequence>
</xs:complexType>
<xs:complexType
name=
"DeviceType"
>
<xs:sequence>
<xs:element
name=
"location"
type=
"LocationType"
maxOccurs=
"unbounded"
/>
</xs:sequence>
</xs:complexType>
<xs:complexType
name=
"LocationType"
>
<xs:sequence>
<xs:element
name=
"property"
type=
"PropertyType"
maxOccurs=
"unbounded"
/>
</xs:sequence>
</xs:complexType>
<xs:complexType
name=
"PropertyType"
>
<xs:sequence>
<xs:element
name=
"has_history"
type=
"xs:boolean"
default=
"true"
/>
<xs:element
name=
"is_constant"
type=
"xs:boolean"
default=
"false"
/>
<xs:element
name=
"spectrum"
type=
"SpectrumType"
minOccurs=
"0"
/>
</xs:sequence>
<xs:attribute
name=
"source"
type=
"xs:string"
use=
"required"
/>
<xs:attribute
name=
"name"
type=
"xs:string"
/>
</xs:complexType>
<xs:complexType
name=
"SpectrumType"
>
<xs:attribute
name=
"start"
type=
"xs:float"
default=
"0.0"
/>
<xs:attribute
name=
"increment"
type=
"xs:float"
default=
"1.0"
/>
</xs:complexType>
</xs:schema>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment