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
466ae0e0
Commit
466ae0e0
authored
7 years ago
by
Martin Killenberg
Browse files
Options
Downloads
Patches
Plain Diff
extended xml schema to allow defaults (globaly and in locations)
parent
38ab4223
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
xmlschema/doocs_variable_tree.xsd
+28
-12
28 additions, 12 deletions
xmlschema/doocs_variable_tree.xsd
with
28 additions
and
12 deletions
xmlschema/doocs_variable_tree.xsd
+
28
−
12
View file @
466ae0e0
...
@@ -12,34 +12,50 @@
...
@@ -12,34 +12,50 @@
</xs:documentation>
</xs:documentation>
</xs:annotation>
</xs:annotation>
<xs:element
name=
"device_server"
type=
"Device
Type
"
/>
<xs:element
name=
"device_server"
type=
"Device"
/>
<xs:complexType
name=
"Device
Type
"
>
<xs:complexType
name=
"Device"
>
<xs:sequence>
<xs:sequence>
<xs:element
name=
"location"
type=
"LocationType"
minOccurs=
"0"
maxOccurs=
"unbounded"
/>
<xs:group
ref=
"PropertyDetails"
/>
<xs:element
name=
"location"
type=
"Location"
minOccurs=
"0"
maxOccurs=
"unbounded"
/>
<xs:element
name=
"import"
type=
"xs:string"
minOccurs=
"0"
maxOccurs=
"unbounded"
/>
<xs:element
name=
"import"
type=
"xs:string"
minOccurs=
"0"
maxOccurs=
"unbounded"
/>
</xs:sequence>
</xs:sequence>
</xs:complexType>
</xs:complexType>
<xs:complexType
name=
"Location
Type
"
>
<xs:complexType
name=
"Location"
>
<xs:sequence>
<xs:sequence>
<xs:element
name=
"property"
type=
"PropertyType"
minOccurs=
"0"
maxOccurs=
"unbounded"
/>
<xs:group
ref=
"PropertyDetails"
/>
<xs:element
name=
"import"
type=
"LocationImportType"
minOccurs=
"0"
maxOccurs=
"unbounded"
/>
<xs:element
name=
"property"
type=
"Property"
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
Type
"
>
<xs:complexType
name=
"Property"
>
<xs:sequence>
<xs:sequence>
<xs:element
name=
"has_history"
type=
"xs:boolean"
default=
"true"
minOccurs=
"0"
/>
<xs:group
ref=
"PropertyDetails"
/>
<xs:element
name=
"is_writeable"
type=
"xs:boolean"
default=
"true"
minOccurs=
"0"
/>
<xs:element
name=
"spectrum"
type=
"SpectrumType"
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"
/>
</xs:complexType>
</xs:complexType>
<!-- This group describes if a "DOOCS property" has history, which type it is etc.
Unfortunately the name property is already taken (otherwise I would call it property of a
process variable), and attribute is taken by xml (it cannot be an xml attribute because
those are only simple types, and to call the group PropertyAttributes but they are not
xml attributes would be completely confusing).
Also the Device and the Location will have PropertyDetails, which will serve as default
values.
-->
<xs:group
name=
"PropertyDetails"
>
<xs:sequence>
<xs:element
name=
"has_history"
type=
"xs:boolean"
default=
"true"
minOccurs=
"0"
/>
<xs:element
name=
"is_writeable"
type=
"xs:boolean"
default=
"true"
minOccurs=
"0"
/>
<xs:element
name=
"spectrum"
type=
"Spectrum"
minOccurs=
"0"
/>
</xs:sequence>
</xs:group>
<xs:complexType
name=
"LocationImport
Type
"
>
<xs:complexType
name=
"LocationImport"
>
<xs:simpleContent>
<xs:simpleContent>
<xs:extension
base=
"xs:string"
>
<xs:extension
base=
"xs:string"
>
<xs:attribute
name=
"directory"
type=
"xs:string"
/>
<xs:attribute
name=
"directory"
type=
"xs:string"
/>
...
@@ -47,7 +63,7 @@
...
@@ -47,7 +63,7 @@
</xs:simpleContent>
</xs:simpleContent>
</xs:complexType>
</xs:complexType>
<xs:complexType
name=
"Spectrum
Type
"
>
<xs:complexType
name=
"Spectrum"
>
<xs:attribute
name=
"start"
type=
"xs:float"
default=
"0.0"
/>
<xs:attribute
name=
"start"
type=
"xs:float"
default=
"0.0"
/>
<xs:attribute
name=
"increment"
type=
"xs:float"
default=
"1.0"
/>
<xs:attribute
name=
"increment"
type=
"xs:float"
default=
"1.0"
/>
</xs:complexType>
</xs:complexType>
...
...
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