diff --git a/SDT/schema2.0/test/EchonetLiteExamples.xml b/SDT/schema2.0/test/EchonetLiteExamples.xml new file mode 100644 index 0000000000000000000000000000000000000000..a385e948ed86a1ed20bb5b947e9bee49c2d4b98e --- /dev/null +++ b/SDT/schema2.0/test/EchonetLiteExamples.xml @@ -0,0 +1,109 @@ +<?xml version="1.0" encoding="utf-8"?> + +<!-- Example SDT definition taken from EchonetLite https://github.com/ECHONET-Consortium --> + +<Domain id="jp.echonet" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns="http://homegatewayinitiative.org/xml/dal/2.0"> + + <!-- Various examples for module classes --> + + <Modules> + + <!-- actuator --> + + <ModuleClass name="operationStatus"> + <Data> + <DataPoint name="operationStatus" type="boolean" writable="true"> + <Doc>This property indicates the ON/OFF status.</Doc> + </DataPoint> + </Data> + <Events> + <Event name="operationStatus"> + <Data> + </Data> + </Event> + </Events> + </ModuleClass> + + <!-- runtime property --> + + <ModuleClass name="installationLocation"> + <Data> + <DataPoint name="installationLocation" type="string" writable="true"> + <Doc>This property indicates the installation location</Doc> + </DataPoint> + </Data> + <Events> + <Event name="installationLocation"> + <Data> + </Data> + </Event> + </Events> + </ModuleClass> + + <!-- sensor readout --> + + <ModuleClass name="measuredInstantaneousPowerConsumption"> + <Data> + <DataPoint name="measuredInstantaneousPowerConsumption" type="integer" writable="false"> + <Doc>This property indicates the instantaneous power consumption of the device in watts.</Doc> + </DataPoint> + </Data> + </ModuleClass> + + <ModuleClass name="temperatureSensorDataPoints"> + <Data> + <DataPoint name="measuredTemperatureValue" type="integer" writable="false"> + <Doc>This property indicates the measured temperature value in units of 0.1C.</Doc> + </DataPoint> + </Data> + </ModuleClass> + + <!-- example appliance types --> + + <ModuleClass name="washingMachineDataPoints"> + <Data> + <DataPoint name="door/CoverOpen/CloseStatus" type="enum" writable="false"> + <Doc>This property indicates whether the door/cover is open or closed.</Doc> + </DataPoint> + <DataPoint name="washingMachineSetting" type="enum" writable="true"> + <Doc>Washing machine setting</Doc> + </DataPoint> + <DataPoint name="currentStageOfWashingCycle" type="enum" writable="false"> + <Doc>This property indicates the current stage of the washing cycle.</Doc> + </DataPoint> + <DataPoint name="timeRemainingToCompleteWashingCycle" type="time" writable="false"> + <Doc>This property indicates the time remaining to complete the current washing cycle in the HH:MM:SS format.</Doc> + </DataPoint> + <DataPoint name="onTimerReservationSetting" type="enum" writable="true"> + <Doc>Reservation ON/OFF</Doc> + </DataPoint> + <DataPoint name="onTimerSetting" type="time" writable="true"> + <Doc>Timer value (HH:MM)</Doc> + </DataPoint> + <DataPoint name="relativeTimeBasedOnTimerSetting" type="time" writable="true"> + <Doc>Timer value (HH:MM)</Doc> + </DataPoint> + </Data> + </ModuleClass> + </Modules> + + + <!-- Very simple example for a washing machine definition --> + + <RootDevices> + <RootDevice id="SimpleWaschingMachine"> + <DeviceInfo> + <Name>washing machine</Name> + <Vendor>Echonet</Vendor> + </DeviceInfo> + + <Modules> + <Module name="washingMachineDataPoints"> + <extends domain="jp.echonet" class="operationStatus"/> + </Module> + </Modules> + </RootDevice> + </RootDevices> + +</Domain> + \ No newline at end of file diff --git a/SDT/schema3.0/test/EchonetLiteExamples.xml b/SDT/schema3.0/test/EchonetLiteExamples.xml new file mode 100644 index 0000000000000000000000000000000000000000..d7853c4dc88c91c712edb76242c8d93ea7a255ea --- /dev/null +++ b/SDT/schema3.0/test/EchonetLiteExamples.xml @@ -0,0 +1,141 @@ +<?xml version="1.0" encoding="iso-8859-1"?> + +<!-- Example SDT definition taken from EchonetLite https://github.com/ECHONET-Consortium --> + +<Domain xmlns="http://homegatewayinitiative.org/xml/dal/3.0" + xmlns:xi="http://www.w3.org/2001/XInclude" + id="jp.echonet"> + + <!-- Various examples for module classes --> + + <Modules> + + <!-- actuator --> + + <ModuleClass name="operationStatus"> + <Data> + <DataPoint name="operationStatus" writable="true"> + <Doc>This property indicates the ON/OFF status.</Doc> + <DataType> + <SimpleType type="boolean" /> + </DataType> + </DataPoint> + </Data> + <Events> + <Event name="operationStatus"> + </Event> + </Events> + </ModuleClass> + + <!-- runtime property --> + + <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> + + <!-- sensor readout --> + + <ModuleClass name="measuredInstantaneousPowerConsumption"> + <Data> + <DataPoint name="measuredInstantaneousPowerConsumption" writable="false"> + <Doc>This property indicates the instantaneous power consumption of the device in watts.</Doc> + <DataType> + <SimpleType type="integer" /> + </DataType> + </DataPoint> + </Data> + </ModuleClass> + + <ModuleClass name="temperatureSensorDataPoints"> + <Data> + <DataPoint name="measuredTemperatureValue" writable="false"> + <Doc>This property indicates the measured temperature value in units of 0.1C.</Doc> + <DataType> + <SimpleType type="integer" /> + </DataType> + </DataPoint> + </Data> + </ModuleClass> + + <!-- example appliance types --> + + <ModuleClass name="washingMachineDataPoints"> + <Data> + <DataPoint name="door/CoverOpen/CloseStatus" writable="false"> + <Doc>This property indicates whether the door/cover is open or closed.</Doc> + <DataType> + <SimpleType type="enum" /> + </DataType> + </DataPoint> + <DataPoint name="washingMachineSetting" writable="true"> + <Doc>Washing machine setting</Doc> + <DataType> + <SimpleType type="enum" /> + </DataType> + </DataPoint> + <DataPoint name="currentStageOfWashingCycle" writable="false"> + <Doc>This property indicates the current stage of the washing cycle.</Doc> + <DataType> + <SimpleType type="enum" /> + </DataType> + </DataPoint> + <DataPoint name="timeRemainingToCompleteWashingCycle" writable="false"> + <Doc>This property indicates the time remaining to complete the current washing cycle in the HH:MM:SS format.</Doc> + <DataType> + <SimpleType type="time" /> + </DataType> + </DataPoint> + <DataPoint name="onTimerReservationSetting" writable="true"> + <Doc>Reservation ON/OFF</Doc> + <DataType> + <SimpleType type="enum" /> + </DataType> + </DataPoint> + <DataPoint name="onTimerSetting" writable="true"> + <Doc>Timer value (HH:MM)</Doc> + <DataType> + <SimpleType type="time" /> + </DataType> + </DataPoint> + <DataPoint name="relativeTimeBasedOnTimerSetting" writable="true"> + <Doc>Timer value (HH:MM)</Doc> + <DataType> + <SimpleType type="time" /> + </DataType> + </DataPoint> + </Data> + </ModuleClass> + </Modules> + + <!-- Very simple example for a washing machine definition --> + + <Devices> + <Device id="SimpleWaschingMachine"> + <Properties> + <Property name="Name" value="washing machine"> + <SimpleType type="string" /> + </Property> + <Property name="Vendor" value="Echonet"> + <SimpleType type="string" /> + </Property> + </Properties> + <Modules> + <Module name="washingMachineDataPoints"> + <extends domain="jp.echonet" class="operationStatus"/> + </Module> + </Modules> + </Device> + </Devices> + +</Domain> \ No newline at end of file