diff --git a/SDT/schema3.0/test/example1.SDT.xml b/SDT/schema3.0/test/example1.SDT.xml new file mode 100644 index 0000000000000000000000000000000000000000..82cd47876f3ab1d868dfca80e90bd6bcb5d1c7dd --- /dev/null +++ b/SDT/schema3.0/test/example1.SDT.xml @@ -0,0 +1,75 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- Example1 SDT inspired by some Echonet Lite examples --> +<Domain xmlns="http://homegatewayinitiative.org/xml/dal/3.0" + xmlns:xi="http://www.w3.org/2001/XInclude" + id="example1.SDT"> + + <Modules> + + <!-- Various examples for module classes --> + <ModuleClass name="operationStatus"> + <Data> + <DataPoint name="operationStatus" writable="true"> + <Doc>This property sets the ON/OFF status.</Doc> + <DataType> + <SimpleType type="boolean"/> + </DataType> + </DataPoint> + </Data> + <Events> + <Event name="operationStatus"> + </Event> + </Events> + </ModuleClass> + + + <ModuleClass name="installationLocation"> + <Data> + <DataPoint name="installationLocation" writable="true"> + <Doc>This property indicates the installation location</Doc> + <DataType> + <SimpleType type="string"/> + </DataType> + </DataPoint> + </Data> + <Events> + <Event name="installationLocation"> </Event> + </Events> + </ModuleClass> + + <ModuleClass name="measuredCumulativePowerConsumption"> + <Data> + <DataPoint name="measuredCumulativePowerConsumption" writable="false"> + <Doc>This indicates cumulative power consumption of the device in increments of 0.001kWh.</Doc> + <DataType unitOfMeasure="watt"> + <SimpleType type="integer"/> + </DataType> + </DataPoint> + </Data> + </ModuleClass> + + <ModuleClass name="onTimerSetting"> + <Data> + <DataPoint name="onTimer" writable="true"> + <Doc>Timer value (HH:MM)</Doc> + <DataType> + <SimpleType type="time"/> + </DataType> + </DataPoint> + </Data> + </ModuleClass> + + <ModuleClass name="statusDoor"> + <Data> + <DataPoint name="stausDoor" writable="false"> + <Doc>This reads the open=true or closed=false status of a door </Doc> + <DataType> + <SimpleType type="boolean"/> + </DataType> + </DataPoint> + </Data> + </ModuleClass> + + </Modules> + +</Domain> diff --git a/SDT/schema3.0/test/example2.SDT.xml b/SDT/schema3.0/test/example2.SDT.xml new file mode 100644 index 0000000000000000000000000000000000000000..82090f7174a241b2fe3f9912cc88dabb236af38e --- /dev/null +++ b/SDT/schema3.0/test/example2.SDT.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- Example1 SDT inspired by some Echonet Lite examples --> +<Domain xmlns="http://homegatewayinitiative.org/xml/dal/3.0" + xmlns:xi="http://www.w3.org/2001/XInclude" + id="example2.SDT"> + + <Imports> + <xi:include href="./example1.SDT.xml" parse="xml" /> + </Imports> + + <Devices> + <Device id="airConditioner"> + <Modules> + <Module name="operationStatus"> + <extends domain="example1.SDT" class="operationStatus"/> + </Module> + <Module name="installationLocation"> + <extends domain="example1.SDT" class="installationLocation"/> + </Module> + <Module name="measuredCumulativePowerConsumption"> + <extends domain="example1.SDT" class="measuredCumulativePowerConsumption"/> + </Module> + <Module name="measuredCumulativePowerConsumption"> + <extends domain="example1.SDT" class="measuredCumulativePowerConsumption"/> + </Module> + <Module name="onTimerSetting"> + <extends domain="example1.SDT" class="onTimerSetting"/> + </Module> + </Modules> + </Device> + </Devices> +</Domain> \ No newline at end of file diff --git a/SDT/schema3.0/test/example3.SDT.xml b/SDT/schema3.0/test/example3.SDT.xml new file mode 100644 index 0000000000000000000000000000000000000000..cb3c1836f61578cfb6103d9eae2e5a9183f61967 --- /dev/null +++ b/SDT/schema3.0/test/example3.SDT.xml @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- Example1 SDT inspired by some Echonet Lite examples --> +<Domain xmlns="http://homegatewayinitiative.org/xml/dal/3.0" + xmlns:xi="http://www.w3.org/2001/XInclude" + id="example3.SDT"> + + <Imports> + <xi:include href="./example1.SDT.xml" parse="xml" /> + </Imports> + + <Devices> + <Device id="waschingMachine"> + <Modules> + <Module name="operationStatus"> + <extends domain="example1.SDT" class="operationStatus"/> + </Module> + <Module name="installationLocation"> + <extends domain="example1.SDT" class="installationLocation"/> + </Module> + <Module name="measuredCumulativePowerConsumption"> + <extends domain="example1.SDT" class="measuredCumulativePowerConsumption"/> + </Module> + <Module name="measuredCumulativePowerConsumption"> + <extends domain="example1.SDT" class="measuredCumulativePowerConsumption"/> + </Module> + <Module name="onTimerSetting"> + <extends domain="example1.SDT" class="onTimerSetting"/> + </Module> + <Module name="statusDoor"> + <extends domain="example1.SDT" class="statusDoor"/> + </Module> + </Modules> + </Device> + </Devices> +</Domain> \ No newline at end of file