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
0b2682d8
Commit
0b2682d8
authored
9 years ago
by
ankraft
Browse files
Options
Downloads
Patches
Plain Diff
- Changed example test files accordingly
parent
94287b39
No related branches found
Branches containing commit
No related tags found
Tags containing commit
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
-4
6 additions, 4 deletions
SDT/schema3.0/test/dal-core.xml
SDT/schema3.0/test/dal-eg.xml
+11
-4
11 additions, 4 deletions
SDT/schema3.0/test/dal-eg.xml
SDT/schema3.0/test/mseeb.xml
+50
-21
50 additions, 21 deletions
SDT/schema3.0/test/mseeb.xml
with
67 additions
and
29 deletions
SDT/schema3.0/test/dal-core.xml
+
6
−
4
View file @
0b2682d8
...
...
@@ -19,10 +19,12 @@
</Action>
<Action
name=
"setTarget"
>
<Doc>
Set the associated state to the specified value.
</Doc>
<Arg
name=
"value"
>
<Doc>
The desired value of the associated state.
</Doc>
<SimpleType
type=
"boolean"
/>
</Arg>
<Args>
<Arg
name=
"value"
>
<Doc>
The desired value of the associated state.
</Doc>
<SimpleType
type=
"boolean"
/>
</Arg>
</Args>
</Action>
</Actions>
</ModuleClass>
...
...
This diff is collapsed.
Click to expand it.
SDT/schema3.0/test/dal-eg.xml
+
11
−
4
View file @
0b2682d8
...
...
@@ -22,11 +22,18 @@
<tt>
on
</tt>
and
<tt>
off
</tt>
. This is clearly a candidate for the
module class
<tt>
BooleanState
</tt>
.
</Doc>
<DeviceInfo>
<Name>
PowerSwitch
</Name>
<DeviceInfos>
<DeviceInfo
name=
"Name"
>
<Doc>
Original value: PowerSwitch
</Doc>
<SimpleType
type=
"string"
/>
</DeviceInfo>
<!-- The Vendor field should probably be part of the domain -->
<Vendor>
Telekom Innovation Laboratories
</Vendor>
</DeviceInfo>
<DeviceInfo
name=
"Vendor"
>
<Doc>
Original value: Telekom Innovation Laboratories
</Doc>
<SimpleType
type=
"string"
/>
</DeviceInfo>
</DeviceInfos>
<Modules>
<Module
name=
"proprietaryPower"
>
...
...
This diff is collapsed.
Click to expand it.
SDT/schema3.0/test/mseeb.xml
+
50
−
21
View file @
0b2682d8
...
...
@@ -87,12 +87,14 @@
<Doc>
Set the associated state to the specified value.
</Doc>
<Arg
name=
"value"
>
<Doc>
The desired value of the associated state.
</Doc>
<SimpleType
type=
"boolean"
/>
</Arg>
<Args>
<Arg
name=
"value"
>
<Doc>
The desired value of the associated state.
</Doc>
<SimpleType
type=
"boolean"
/>
</Arg>
</Args>
</Action>
</Actions>
<Events>
...
...
@@ -117,13 +119,28 @@
<Doc>
This device is intended as a demonstration of how to define a Root Device with multiple sub-devices.
</Doc>
<DeviceInfo>
<Name>
Multi Socket Electrical-Extension-Block
</Name>
<Vendor>
HGI
</Vendor>
<FirmwareVersion>
1.0
</FirmwareVersion>
<VendorURL>
http://www.homegatewayinitative.org
</VendorURL>
<SerialNumber>
1234.5
</SerialNumber>
</DeviceInfo>
<DeviceInfos>
<DeviceInfo
name=
"Name"
>
<Doc>
Original value: Multi Socket Electrical-Extension-Block
</Doc>
<SimpleType
type=
"string"
/>
</DeviceInfo>
<DeviceInfo
name=
"Vendor"
>
<Doc>
Original value: HGI
</Doc>
<SimpleType
type=
"string"
/>
</DeviceInfo>
<DeviceInfo
name=
"FirmwareVersion"
>
<Doc>
Original value: 1.0
</Doc>
<SimpleType
type=
"string"
/>
</DeviceInfo>
<DeviceInfo
name=
"VendorURL"
>
<Doc>
Original value: http://www.homegatewayinitative.org
</Doc>
<SimpleType
type=
"uri"
/>
</DeviceInfo>
<DeviceInfo
name=
"SerialNumber"
>
<Doc>
Original value: 1234.5
</Doc>
<SimpleType
type=
"string"
/>
</DeviceInfo>
</DeviceInfos>
<!-- These are the modules for the device:
- Switch on/off all contained switches. It inherits from hgi.dal.core.BooleanState.
...
...
@@ -188,10 +205,16 @@
<Doc>
This sub device is intended as a demonstration of how to use the abstract modules defined in the
<em>
HGI Core
</em>
domain.
</Doc>
<DeviceInfo>
<Name>
PowerSwitch 1
</Name>
<Vendor>
HGI
</Vendor>
</DeviceInfo>
<DeviceInfos>
<DeviceInfo
name=
"Name"
>
<Doc>
Original value: PowerSwitch 1
</Doc>
<SimpleType
type=
"string"
/>
</DeviceInfo>
<DeviceInfo
name=
"Vendor"
>
<Doc>
Original value: HGI
</Doc>
<SimpleType
type=
"string"
/>
</DeviceInfo>
</DeviceInfos>
<Modules>
<Module
name=
"power"
>
<extends
domain=
"hgi.dal.core"
class=
"BooleanState"
/>
...
...
@@ -205,10 +228,16 @@
<Doc>
This sub device is intended as a demonstration of how to use the abstract modules defined in the
<em>
HGI Core
</em>
domain.
</Doc>
<DeviceInfo>
<Name>
PowerSwitch 2
</Name>
<Vendor>
HGI
</Vendor>
</DeviceInfo>
<DeviceInfos>
<DeviceInfo
name=
"Name"
>
<Doc>
Original value: PowerSwitch 2
</Doc>
<SimpleType
type=
"string"
/>
</DeviceInfo>
<DeviceInfo
name=
"Vendor"
>
<Doc>
Original value: HGI
</Doc>
<SimpleType
type=
"string"
/>
</DeviceInfo>
</DeviceInfos>
<Modules>
<Module
name=
"power"
>
<extends
domain=
"hgi.dal.core"
class=
"BooleanState"
/>
...
...
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