Skip to content
Snippets Groups Projects
Commit 1e826f29 authored by ankraft's avatar ankraft
Browse files

Changes after discussion

parent 99a39c52
Branches
Tags
No related merge requests found
<?xml version="1.0" encoding="iso-8859-1"?> <?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" <Domain xmlns="http://homegatewayinitiative.org/xml/dal/3.0"
xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xi="http://www.w3.org/2001/XInclude"
id="jp.echonet"> id="example.based.on.echonetLite">
<!-- Various examples for module classes -->
<Modules> <Modules>
<ModuleClass name="operationStatus"> <ModuleClass name="operationStatus">
...@@ -13,14 +19,13 @@ ...@@ -13,14 +19,13 @@
</DataType> </DataType>
</DataPoint> </DataPoint>
</Data> </Data>
<Events>
<Event name="operationStatus">
</Event>
</Events>
</ModuleClass> </ModuleClass>
<!-- runtime property -->
<ModuleClass name="installationLocation"> <ModuleClass name="installationLocation">
<Data> <Data>
<DataPoint name="installationLocation" writable="true"> <DataPoint name="installationLocation" readable="true" writable="true">
<Doc>This property indicates the installation location</Doc> <Doc>This property indicates the installation location</Doc>
<DataType> <DataType>
<SimpleType type="string" /> <SimpleType type="string" />
...@@ -29,24 +34,29 @@ ...@@ -29,24 +34,29 @@
</Data> </Data>
<Events> <Events>
<Event name="installationLocation"> <Event name="installationLocation">
<!-- Event payload not shown here -->
</Event> </Event>
</Events> </Events>
</ModuleClass> </ModuleClass>
<!-- sensor readout -->
<ModuleClass name="measuredInstantaneousPowerConsumption"> <ModuleClass name="measuredInstantaneousPowerConsumption">
<Data> <Data>
<DataPoint name="measuredInstantaneousPowerConsumption" writable="false"> <DataPoint name="measuredInstantaneousPowerConsumption" readable="true" writable="false">
<Doc>This property indicates the instantaneous power consumption of the device in watts.</Doc> <Doc>This property indicates the instantaneous power consumption of the device in watts.</Doc>
<DataType> <DataType unitOfMeasure="watts">
<SimpleType type="integer" /> <SimpleType type="integer" />
</DataType> </DataType>
</DataPoint> </DataPoint>
</Data> </Data>
</ModuleClass> </ModuleClass>
<ModuleClass name="temperatureSensorDataPoints"> <ModuleClass name="temperatureSensorDataPoints">
<Data> <Data>
<DataPoint name="measuredTemperatureValue" writable="false"> <DataPoint name="measuredTemperatureValue" readable="true" writable="false">
<Doc>This property indicates the measured temperature value in units of 0.1C.</Doc> <Doc>This property indicates the measured temperature value in units of 0.1C.</Doc>
<DataType> <DataType unitOfMeasure="celsius">
<SimpleType type="integer" /> <SimpleType type="integer" />
</DataType> </DataType>
</DataPoint> </DataPoint>
...@@ -54,64 +64,107 @@ ...@@ -54,64 +64,107 @@
</ModuleClass> </ModuleClass>
</Modules> </Modules>
<!-- Very simple example for a washing machine definition -->
<Devices> <Devices>
<Device id="SimpleWaschingMachine"> <Device id="SimpleWaschingMachine">
<Properties> <Properties>
<Property name="Name" value="washing machine"> <Property name="Name" value="washing machine">
<SimpleType type="string" /> <SimpleType type="string" />
</Property> </Property>
<Property name="Vendor" value="Echonet"> <Property name="Vendor" value="ACME">
<SimpleType type="string" /> <SimpleType type="string" />
</Property> </Property>
</Properties> </Properties>
<Modules> <Modules>
<!-- Inheriting ModuleClasses from the global generic ModuleClasses -->
<Module name="installationLocation">
<extends domain="example.based.on.echonetLite" class="installationLocation"/>
</Module>
<Module name="measuredInstantaneousPowerConsumption">
<extends domain="example.based.on.echonetLite" class="measuredInstantaneousPowerConsumption"/>
</Module>
<Module name="temperatureSensorDataPoints">
<extends domain="example.based.on.echonetLite" class="temperatureSensorDataPoints"/>
</Module>
<!-- The following Module inherits and extends a global generic ModuleClass with an event. Therefore, it is renamed to express
the change of name. -->
<Module name="washingMachineOperationStatus"> <Module name="washingMachineOperationStatus">
<extends domain="jp.echonet" class="operationStatus"/> <extends domain="example.based.on.echonetLite" class="operationStatus"/>
<!-- This Module extends the global one with an event. -->
<Events>
<Event name="washingMachineOperationStatus">
<!-- Event payload not shown here -->
</Event>
</Events>
</Module> </Module>
<!-- Data points local to the wasching machine device -->
<Module name="washingMachineDataPoints"> <Module name="washingMachineDataPoints">
<Data> <Data>
<DataPoint name="door/CoverOpen/CloseStatus" writable="false"> <DataPoint name="door/CoverOpen/CloseStatus" readable="true" writable="false">
<Doc>This property indicates whether the door/cover is open or closed.</Doc> <Doc>This property indicates whether the door/cover is open or closed.</Doc>
<DataType> <DataType>
<SimpleType type="enum" /> <SimpleType type="enum" />
</DataType> </DataType>
</DataPoint> </DataPoint>
<DataPoint name="washingMachineSetting" writable="true"> <DataPoint name="washingMachineSetting" readable="true" writable="true">
<Doc>Washing machine setting</Doc> <Doc>Washing machine setting</Doc>
<DataType> <DataType>
<SimpleType type="enum" /> <SimpleType type="enum" />
</DataType> </DataType>
</DataPoint> </DataPoint>
<DataPoint name="currentStageOfWashingCycle" writable="false"> <DataPoint name="currentStageOfWashingCycle" readable="true" writable="false">
<Doc>This property indicates the current stage of the washing cycle.</Doc> <Doc>This property indicates the current stage of the washing cycle.</Doc>
<DataType> <DataType>
<SimpleType type="enum" /> <SimpleType type="enum" />
</DataType> </DataType>
</DataPoint> </DataPoint>
<DataPoint name="timeRemainingToCompleteWashingCycle" writable="false"> <DataPoint name="timeRemainingToCompleteWashingCycle" readable="true" writable="false">
<Doc>This property indicates the time remaining to complete the current washing cycle in the HH:MM:SS format.</Doc> <Doc>This property indicates the time remaining to complete the current washing cycle in the HH:MM:SS format.</Doc>
<DataType> <DataType>
<SimpleType type="time" /> <SimpleType type="time" />
</DataType> </DataType>
</DataPoint> </DataPoint>
<DataPoint name="onTimerReservationSetting" writable="true">
<!-- These three data points actually would make a good
example to be moved to a separate ModuleClass for
generalization so that they can be used by any device
that would make use of a timer. -->
<DataPoint name="onTimerReservationSetting" readable="true" writable="true">
<Doc>Reservation ON/OFF</Doc> <Doc>Reservation ON/OFF</Doc>
<DataType> <DataType>
<SimpleType type="enum" /> <SimpleType type="enum" />
</DataType> </DataType>
</DataPoint> </DataPoint>
<DataPoint name="onTimerSetting" writable="true"> <DataPoint name="onTimerSetting" readable="true" writable="true">
<Doc>Timer value (HH:MM)</Doc> <Doc>Timer value (HH:MM)</Doc>
<DataType> <DataType>
<SimpleType type="time" /> <SimpleType type="time" />
</DataType> </DataType>
</DataPoint> </DataPoint>
<DataPoint name="relativeTimeBasedOnTimerSetting" writable="true"> <DataPoint name="relativeTimeBasedOnTimerSetting" readable="true" writable="true">
<Doc>Timer value (HH:MM)</Doc> <Doc>Timer value (HH:MM)</Doc>
<DataType> <DataType>
<SimpleType type="time" /> <SimpleType type="time" />
</DataType> </DataType>
</DataPoint> </DataPoint>
</Data> </Data>
</Module> </Module>
</Modules> </Modules>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment