Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
SDT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
MAS
SDT
Commits
bcbcaab4
Commit
bcbcaab4
authored
9 years ago
by
ankraft
Browse files
Options
Downloads
Patches
Plain Diff
Changed examples to latest changes of the SDT
parent
8ec88ed1
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
SDT/schema3.0/test/dal-core.xml
+6
-2
6 additions, 2 deletions
SDT/schema3.0/test/dal-core.xml
SDT/schema3.0/test/dal-eg.xml
+7
-6
7 additions, 6 deletions
SDT/schema3.0/test/dal-eg.xml
SDT/schema3.0/test/mseeb.xml
+54
-27
54 additions, 27 deletions
SDT/schema3.0/test/mseeb.xml
with
67 additions
and
35 deletions
SDT/schema3.0/test/dal-core.xml
+
6
−
2
View file @
bcbcaab4
...
@@ -15,14 +15,18 @@
...
@@ -15,14 +15,18 @@
<Actions>
<Actions>
<Action
name=
"get"
>
<Action
name=
"get"
>
<Doc>
Obtain the current associated state.
</Doc>
<Doc>
Obtain the current associated state.
</Doc>
<SimpleType
type=
"boolean"
/>
<DataType>
<SimpleType
type=
"boolean"
/>
</DataType>
</Action>
</Action>
<Action
name=
"setTarget"
>
<Action
name=
"setTarget"
>
<Doc>
Set the associated state to the specified value.
</Doc>
<Doc>
Set the associated state to the specified value.
</Doc>
<Args>
<Args>
<Arg
name=
"value"
>
<Arg
name=
"value"
>
<Doc>
The desired value of the associated state.
</Doc>
<Doc>
The desired value of the associated state.
</Doc>
<SimpleType
type=
"boolean"
/>
<DataType>
<SimpleType
type=
"boolean"
/>
</DataType>
</Arg>
</Arg>
</Args>
</Args>
</Action>
</Action>
...
...
This diff is collapsed.
Click to expand it.
SDT/schema3.0/test/dal-eg.xml
+
7
−
6
View file @
bcbcaab4
...
@@ -8,9 +8,6 @@
...
@@ -8,9 +8,6 @@
<xi:include
href=
"./dal-core.xml"
parse=
"xml"
/>
<xi:include
href=
"./dal-core.xml"
parse=
"xml"
/>
</Imports>
</Imports>
<Modules>
</Modules>
<Devices>
<Devices>
<Device
id=
"switch.power"
>
<Device
id=
"switch.power"
>
...
@@ -31,7 +28,7 @@
...
@@ -31,7 +28,7 @@
<!-- The Vendor field should probably be part of the domain -->
<!-- The Vendor field should probably be part of the domain -->
<Characteristic
name=
"Vendor"
>
<Characteristic
name=
"Vendor"
>
<Doc>
Original value: Telekom Innovation Laboratories
</Doc>
<Doc>
Original value: Telekom Innovation Laboratories
</Doc>
<SimpleType
type=
"string"
/>
<SimpleType
type=
"string"
/>
</Characteristic>
</Characteristic>
</Characteristics>
</Characteristics>
...
@@ -56,7 +53,9 @@
...
@@ -56,7 +53,9 @@
</Action>
</Action>
<Action
name=
"state"
>
<Action
name=
"state"
>
<Doc>
Query the state of the switch. Returns the string "
<tt>
on
</tt>
" or "
<tt>
off
</tt>
".
</Doc>
<Doc>
Query the state of the switch. Returns the string "
<tt>
on
</tt>
" or "
<tt>
off
</tt>
".
</Doc>
<SimpleType
type=
"string"
/>
<DataType>
<SimpleType
type=
"string"
/>
</DataType>
</Action>
</Action>
</Actions>
</Actions>
...
@@ -66,7 +65,9 @@
...
@@ -66,7 +65,9 @@
</Doc>
</Doc>
<Data>
<Data>
<DataPoint
name=
"state"
writable=
"false"
>
<DataPoint
name=
"state"
writable=
"false"
>
<SimpleType
type=
"boolean"
/>
<DataType>
<SimpleType
type=
"boolean"
/>
</DataType>
</DataPoint>
</DataPoint>
</Data>
</Data>
</Event>
</Event>
...
...
This diff is collapsed.
Click to expand it.
SDT/schema3.0/test/mseeb.xml
+
54
−
27
View file @
bcbcaab4
...
@@ -81,7 +81,9 @@
...
@@ -81,7 +81,9 @@
<Doc>
<Doc>
Obtain the current associated state.
Obtain the current associated state.
</Doc>
</Doc>
<SimpleType
type=
"boolean"
/>
<DataType>
<SimpleType
type=
"boolean"
/>
</DataType>
</Action>
</Action>
<Action
name=
"setTarget"
>
<Action
name=
"setTarget"
>
<Doc>
<Doc>
...
@@ -92,7 +94,9 @@
...
@@ -92,7 +94,9 @@
<Doc>
<Doc>
The desired value of the associated state.
The desired value of the associated state.
</Doc>
</Doc>
<SimpleType
type=
"boolean"
/>
<DataType>
<SimpleType
type=
"boolean"
/>
</DataType>
</Arg>
</Arg>
</Args>
</Args>
</Action>
</Action>
...
@@ -101,7 +105,9 @@
...
@@ -101,7 +105,9 @@
<Event
name=
"stateChanged"
optional=
"true"
>
<Event
name=
"stateChanged"
optional=
"true"
>
<Data>
<Data>
<DataPoint
name=
"state"
readable=
"true"
>
<DataPoint
name=
"state"
readable=
"true"
>
<SimpleType
type=
"boolean"
/>
<DataType>
<SimpleType
type=
"boolean"
/>
</DataType>
</DataPoint>
</DataPoint>
</Data>
</Data>
</Event>
</Event>
...
@@ -165,14 +171,30 @@
...
@@ -165,14 +171,30 @@
<Actions>
<Actions>
<Action
name=
"getPowerConsumption"
>
<Action
name=
"getPowerConsumption"
>
<Doc>
Get the power consumption.
</Doc>
<Doc>
Get the power consumption.
</Doc>
<Struct
name=
"values"
>
<DataType
name=
"consumption"
>
<Array
name=
"consumption"
>
<Struct>
<SimpleType
type=
"float"
/>
<DataType
name=
"values"
>
</Array>
<Array>
<Array
name=
"timeFrame"
>
<DataType>
<SimpleType
type=
"datetime"
/>
<Doc>
This is an example simple data type with a minimum-value constraint.
</Doc>
</Array>
<SimpleType
type=
"float"
/>
</Struct>
<Constraints>
<Constraint
name=
"minValue"
type=
"float"
value=
"0.0"
>
<Doc>
The value must be equal or greater 0.0
</Doc>
</Constraint>
</Constraints>
</DataType>
</Array>
</DataType>
<DataType
name=
"timeFrame"
>
<Array>
<DataType>
<SimpleType
type=
"datetime"
/>
</DataType>
</Array>
</DataType>
</Struct>
</DataType>
</Action>
</Action>
</Actions>
</Actions>
</Module>
</Module>
...
@@ -180,9 +202,13 @@
...
@@ -180,9 +202,13 @@
<Module
name=
"extensionBlockDataPoints"
>
<Module
name=
"extensionBlockDataPoints"
>
<Actions>
<Actions>
<Action
name=
"getNames"
>
<Action
name=
"getNames"
>
<Array
name=
"names"
>
<DataType
name=
"names"
>
<SimpleType
type=
"string"
/>
<Array>
</Array>
<DataType>
<SimpleType
type=
"string"
/>
</DataType>
</Array>
</DataType>
</Action>
</Action>
</Actions>
</Actions>
<Data>
<Data>
...
@@ -192,7 +218,9 @@
...
@@ -192,7 +218,9 @@
<Doc>
<Doc>
This datapoint represents the firmware version of the extension block.
This datapoint represents the firmware version of the extension block.
</Doc>
</Doc>
<SimpleType
type=
"string"
/>
<DataType>
<SimpleType
type=
"string"
/>
</DataType>
</DataPoint>
</DataPoint>
<DataPoint
name=
"powerSwitchNames"
<DataPoint
name=
"powerSwitchNames"
...
@@ -201,9 +229,13 @@
...
@@ -201,9 +229,13 @@
<Doc>
<Doc>
This datapoint is an array of strings with the names of the contained devices.
This datapoint is an array of strings with the names of the contained devices.
</Doc>
</Doc>
<Array>
<DataType>
<SimpleType
type=
"string"
/>
<Array>
</Array>
<DataType>
<SimpleType
type=
"string"
/>
</DataType>
</Array>
</DataType>
</DataPoint>
</DataPoint>
</Data>
</Data>
</Module>
</Module>
...
@@ -221,12 +253,10 @@
...
@@ -221,12 +253,10 @@
This sub device is intended as a demonstration of how to use the abstract modules defined in the
<em>
HGI Core
</em>
domain.
This sub device is intended as a demonstration of how to use the abstract modules defined in the
<em>
HGI Core
</em>
domain.
</Doc>
</Doc>
<Characteristics>
<Characteristics>
<Characteristic
name=
"Name"
>
<Characteristic
name=
"Name"
value=
"PowerSwitch 1"
>
<Doc>
Original value: PowerSwitch 1
</Doc>
<SimpleType
type=
"string"
/>
<SimpleType
type=
"string"
/>
</Characteristic>
</Characteristic>
<Characteristic
name=
"Vendor"
>
<Characteristic
name=
"Vendor"
value=
"HGI"
>
<Doc>
Original value: HGI
</Doc>
<SimpleType
type=
"string"
/>
<SimpleType
type=
"string"
/>
</Characteristic>
</Characteristic>
</Characteristics>
</Characteristics>
...
@@ -244,16 +274,13 @@
...
@@ -244,16 +274,13 @@
This sub device is intended as a demonstration of how to use the abstract modules defined in the
<em>
HGI Core
</em>
domain.
This sub device is intended as a demonstration of how to use the abstract modules defined in the
<em>
HGI Core
</em>
domain.
</Doc>
</Doc>
<Characteristics>
<Characteristics>
<Characteristic
name=
"Name"
>
<Characteristic
name=
"Name"
value=
"PowerSwitch 2"
>
<Doc>
Original value: PowerSwitch 2
</Doc>
<SimpleType
type=
"string"
/>
<SimpleType
type=
"string"
/>
</Characteristic>
</Characteristic>
<Characteristic
name=
"Vendor"
>
<Characteristic
name=
"Vendor"
value=
"HGI"
>
<Doc>
Original value: HGI
</Doc>
<SimpleType
type=
"string"
/>
<SimpleType
type=
"string"
/>
</Characteristic>
</Characteristic>
<Characteristic
name=
"VendorURL"
value=
"http://homegatwaysinitiative.org"
>
<Characteristic
name=
"VendorURL"
value=
"http://homegatwaysinitiative.org"
>
<Doc>
Original value: http://homegatwaysinitiative.org
</Doc>
<SimpleType
type=
"uri"
/>
<SimpleType
type=
"uri"
/>
</Characteristic>
</Characteristic>
<Characteristic
name=
"maximumAltitude"
value=
"2800"
>
<Characteristic
name=
"maximumAltitude"
value=
"2800"
>
...
...
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