Commit 0b2682d8 authored by ankraft's avatar ankraft

- Changed example test files accordingly

parent 94287b39
......@@ -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>
......
......@@ -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">
......
......@@ -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"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment