Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
MAS
SDT
Commits
0b2682d8
Commit
0b2682d8
authored
Sep 09, 2015
by
ankraft
Browse files
- Changed example test files accordingly
parent
94287b39
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
67 additions
and
29 deletions
+67
-29
SDT/schema3.0/test/dal-core.xml
SDT/schema3.0/test/dal-core.xml
+6
-4
SDT/schema3.0/test/dal-eg.xml
SDT/schema3.0/test/dal-eg.xml
+11
-4
SDT/schema3.0/test/mseeb.xml
SDT/schema3.0/test/mseeb.xml
+50
-21
No files found.
SDT/schema3.0/test/dal-core.xml
View file @
0b2682d8
...
...
@@ -19,10 +19,12 @@
</Action>
<Action
name=
"setTarget"
>
<Doc>
Set the associated state to the specified value.
</Doc>
<Args>
<Arg
name=
"value"
>
<Doc>
The desired value of the associated state.
</Doc>
<SimpleType
type=
"boolean"
/>
</Arg>
</Args>
</Action>
</Actions>
</ModuleClass>
...
...
SDT/schema3.0/test/dal-eg.xml
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
name=
"Vendor"
>
<Doc>
Original value: Telekom Innovation Laboratories
</Doc>
<SimpleType
type=
"string"
/>
</DeviceInfo>
</DeviceInfos>
<Modules>
<Module
name=
"proprietaryPower"
>
...
...
SDT/schema3.0/test/mseeb.xml
View file @
0b2682d8
...
...
@@ -87,12 +87,14 @@
<Doc>
Set the associated state to the specified value.
</Doc>
<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>
<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>
<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>
<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"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment