Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • MAS-2018-0047
  • MAS-2018-0050
  • MAS-2018-0081-SDT4_change_log
  • MAS-2018-0082-Introducing_Product
  • MAS-2018-0084-SDT4_JSON
  • MAS-2018-0085-SDT4_removing_Module
  • MAS-2018-0135-SDT_4_0_-_Introducing_void_data_type_to_BasicType
  • MAS-2018-0139-SDT_4_0_–_Adding_support_for_enumeration_types_and_values
  • MAS-2018-0140-SDT_4_0_–_Adding_support_for_semantic_references
  • MAS-2018-0141-SDT_4_0_–_Adding_support_for_defining_and_referencing_data_types
  • MAS-2018-0158-SDT_4_0_–_Removing_BasicType_enum
  • MAS-2018-0161-SDT_4_0_-_Support_for_excluding_certain_components_when_inheriting
  • RDM-2019-0003-SDT_4_0_–_Proposed_Changes_to_XSD
  • RDM-2019-0008-SDT_4_0_-_Changes_to_Data_Points_and_Actions
  • RDM-2019-0009-SDT_4_0_–_Align_spelling_of_import
  • RDM-2019-0010-SDT_4_0_–_Align_types_of_names_and_identifiers
  • RDM-2019-0011-SDT_4_0_-_Moving_Product_under_Domain
  • RDM-2019-0031-Changing_SDT_XML_Namespace
  • RDM-2019-0042-SDT_4_0_–_Changes_to_Product
  • RDM-2019-0065-SDT_4_0_-_Documentation_changes
  • RDM-2020-0001-SDT_4_0_-_Proposed_Multiplicity_for_ModuleClasses_and_SubDevices
  • RDM-2020-0021-SDT_4_0_-_New_documentation
  • RDM-2020-0024-SDT_4_0_-_Renaming_Data_Types
  • RDM-2020-0025-SDT_4_0_-_Removing_optional_from_ModuleClass
  • RDM-2020-0026-SDT_4_0_–_Introducing_Referenced_SubDevices
  • WI-0081-Smart_Device_Template_4_0
  • master
  • 2.0.1
  • 3.0
29 results

Target

Select target project
  • MAS/SDT
1 result
Select Git revision
  • MAS-2018-0047
  • MAS-2018-0050
  • MAS-2018-0081-SDT4_change_log
  • MAS-2018-0082-Introducing_Product
  • MAS-2018-0084-SDT4_JSON
  • MAS-2018-0085-SDT4_removing_Module
  • MAS-2018-0135-SDT_4_0_-_Introducing_void_data_type_to_BasicType
  • MAS-2018-0139-SDT_4_0_–_Adding_support_for_enumeration_types_and_values
  • MAS-2018-0140-SDT_4_0_–_Adding_support_for_semantic_references
  • MAS-2018-0141-SDT_4_0_–_Adding_support_for_defining_and_referencing_data_types
  • MAS-2018-0158-SDT_4_0_–_Removing_BasicType_enum
  • MAS-2018-0161-SDT_4_0_-_Support_for_excluding_certain_components_when_inheriting
  • RDM-2019-0003-SDT_4_0_–_Proposed_Changes_to_XSD
  • RDM-2019-0008-SDT_4_0_-_Changes_to_Data_Points_and_Actions
  • RDM-2019-0009-SDT_4_0_–_Align_spelling_of_import
  • RDM-2019-0010-SDT_4_0_–_Align_types_of_names_and_identifiers
  • RDM-2019-0011-SDT_4_0_-_Moving_Product_under_Domain
  • RDM-2019-0031-Changing_SDT_XML_Namespace
  • RDM-2019-0042-SDT_4_0_–_Changes_to_Product
  • RDM-2019-0065-SDT_4_0_-_Documentation_changes
  • RDM-2020-0001-SDT_4_0_-_Proposed_Multiplicity_for_ModuleClasses_and_SubDevices
  • RDM-2020-0021-SDT_4_0_-_New_documentation
  • RDM-2020-0024-SDT_4_0_-_Renaming_Data_Types
  • RDM-2020-0025-SDT_4_0_-_Removing_optional_from_ModuleClass
  • RDM-2020-0026-SDT_4_0_–_Introducing_Referenced_SubDevices
  • WI-0081-Smart_Device_Template_4_0
  • master
  • 2.0.1
  • 3.0
29 results
Show changes
Showing
with 1831 additions and 0 deletions
<?xml version="1.0" encoding="ISO-8859-1"?>
BooleanState is the preferred module for modelling a functionality corresponding to an underlying binary state.This module should be used to abstract away from the actual datatype and values in question. Note that the module does not define whether the execution mode is blocking or non-blocking.
Obtain the current associated state.
Set the associated state to the specified value.
The desired value of the associated state.
Multi Socket Electrical-Extension-Block
HGI
1.0
http://www.homegatewayinitative.org
1234.5
This device is intended as a demonstration of how to define a Root Device with multiple sub-devices.
The proprietry interface for turning all switches of the extension block on and off.
The action "BooleanState:get" returns "true" when any of the sub-devices is in the state "on", otherwise it returns "false".
This datapoint represents the firmware version of the extension block.
This datapoint is an array of strings with the names of the contained devices.
PowerSwitch 1
HGI
This sub device is intended as a demonstration of how to use the abstract modules defined in the HGI Core domain.
PowerSwitch 2
HGI
This sub device is intended as a demonstration of how to use the abstract modules defined in the HGI Core domain.
File added
File added
File added
loglevel=debug
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<!--
- domain.rng
-
- Version 4.0
-
- This work is released by the MAS Working Group of oneM2M, December 2018.
- The work is created and released under the 3-Clause BSD License.
- See the license text at [https://opensource.org/licenses/BSD-3-Clause for
- full details.
-->
<xs:schema targetNamespace="http://homegatewayinitiative.org/xml/dal/3.0"
xmlns="http://homegatewayinitiative.org/xml/dal/3.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
<xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/03/xml.xsd"/>
<xs:element name="Domain">
<xs:complexType>
<xs:sequence>
<xs:group ref="DocDef"/>
<xs:element minOccurs="0" ref="Imports"/>
<xs:element minOccurs="0" name="Modules">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" ref="ModuleClass"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element minOccurs="0" ref="Devices"/>
</xs:sequence>
<xs:attribute ref="xml:base"/>
<xs:attribute name="id" use="required" type="xs:ID"/>
</xs:complexType>
</xs:element>
<xs:element name="Imports">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" ref="Domain"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ModuleClass" type="ModuleDef"/>
<xs:element name="Devices">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" ref="Device"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Device">
<xs:complexType>
<xs:sequence>
<xs:group ref="DocDef"/>
<xs:element minOccurs="0" ref="Properties"/>
<xs:element minOccurs="0" ref="Modules"/>
<xs:element minOccurs="0" ref="SubDevices"/>
</xs:sequence>
<xs:attribute name="id" use="required" type="xs:Name"/>
</xs:complexType>
</xs:element>
<xs:element name="SubDevices">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" ref="SubDevice"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="SubDevice">
<xs:complexType>
<xs:sequence>
<xs:group ref="DocDef"/>
<xs:element minOccurs="0" ref="Properties"/>
<xs:element minOccurs="0" ref="Modules"/>
</xs:sequence>
<xs:attribute name="id" use="required" type="xs:Name"/>
</xs:complexType>
</xs:element>
<xs:element name="Properties">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" ref="Property"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Property">
<xs:complexType>
<xs:sequence>
<xs:group ref="DocDef"/>
<xs:element ref="SimpleType"/>
</xs:sequence>
<xs:attribute name="name" use="required"/>
<xs:attribute name="optional" type="xs:boolean"/>
<xs:attribute name="value"/>
</xs:complexType>
</xs:element>
<xs:element name="DataType">
<xs:complexType>
<xs:sequence>
<xs:group ref="DocDef"/>
<xs:choice>
<xs:element ref="Struct"/>
<xs:element ref="Array"/>
<xs:element ref="SimpleType"/>
</xs:choice>
<xs:element minOccurs="0" ref="Constraints"/>
</xs:sequence>
<xs:attribute name="name"/>
<xs:attribute name="unitOfMeasure"/>
</xs:complexType>
</xs:element>
<xs:element name="Struct">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" ref="DataType"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Array">
<xs:complexType>
<xs:sequence>
<xs:element ref="DataType"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="SimpleType">
<xs:complexType>
<xs:attribute name="type" use="required" type="BasicType"/>
</xs:complexType>
</xs:element>
<xs:simpleType name="BasicType">
<xs:restriction base="xs:token">
<xs:enumeration value="integer"/>
<xs:enumeration value="boolean"/>
<xs:enumeration value="string"/>
<xs:enumeration value="byte"/>
<xs:enumeration value="float"/>
<xs:enumeration value="array"/>
<xs:enumeration value="enum"/>
<xs:enumeration value="date"/>
<xs:enumeration value="time"/>
<xs:enumeration value="datetime"/>
<xs:enumeration value="blob"/>
<xs:enumeration value="uri"/>
</xs:restriction>
</xs:simpleType>
<xs:element name="Constraints">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" ref="Constraint"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Constraint">
<xs:complexType>
<xs:group ref="DocDef"/>
<xs:attribute name="name" use="required"/>
<xs:attribute name="type" type="BasicType"/>
<xs:attribute name="value"/>
</xs:complexType>
</xs:element>
<xs:group name="DocText">
<xs:sequence>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="em"/>
<xs:element ref="b"/>
<xs:element ref="tt"/>
</xs:choice>
</xs:sequence>
</xs:group>
<xs:element name="em" type="xs:string"/>
<xs:element name="b" type="xs:string"/>
<xs:element name="tt" type="xs:string"/>
<!-- <Doc> element is always optional -->
<xs:group name="DocDef">
<xs:sequence>
<xs:element minOccurs="0" ref="Doc"/>
</xs:sequence>
</xs:group>
<xs:element name="Doc">
<xs:complexType mixed="true">
<xs:choice>
<xs:group ref="DocText"/>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="p"/>
<xs:element ref="img"/>
</xs:choice>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="p">
<xs:complexType mixed="true">
<xs:group ref="DocText"/>
</xs:complexType>
</xs:element>
<xs:element name="img">
<xs:complexType>
<xs:sequence>
<xs:element ref="caption"/>
</xs:sequence>
<xs:attribute name="src" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="caption" type="xs:string"/>
<xs:complexType name="ModuleDef">
<xs:sequence>
<xs:element minOccurs="0" ref="extends"/>
<xs:group ref="DocDef"/>
<xs:element minOccurs="0" ref="Properties"/>
<xs:element minOccurs="0" ref="Actions"/>
<xs:element minOccurs="0" ref="Data"/>
<xs:element minOccurs="0" ref="Events"/>
</xs:sequence>
<xs:attribute name="name" use="required"/>
<xs:attribute name="optional" type="xs:boolean"/>
</xs:complexType>
<xs:element name="extends">
<xs:complexType>
<xs:attribute name="domain" use="required" type="xs:IDREF"/>
<xs:attribute name="class" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="Modules">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" ref="Module"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Module" type="ModuleDef"/>
<xs:element name="Actions">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" ref="Action"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Action">
<xs:complexType>
<xs:sequence>
<xs:group ref="DocDef"/>
<xs:element minOccurs="0" ref="DataType"/>
<xs:element minOccurs="0" ref="Args"/>
</xs:sequence>
<xs:attribute name="name" use="required"/>
<xs:attribute name="optional" type="xs:boolean"/>
</xs:complexType>
</xs:element>
<xs:element name="Args">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" ref="Arg"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Arg">
<xs:complexType>
<xs:sequence>
<xs:group ref="DocDef"/>
<xs:element ref="DataType"/>
</xs:sequence>
<xs:attribute name="name" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="Data">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" ref="DataPoint"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="DataPoint">
<xs:complexType>
<xs:sequence>
<xs:group ref="DocDef"/>
<xs:element ref="DataType"/>
</xs:sequence>
<xs:attribute name="name" use="required"/>
<xs:attribute name="optional" type="xs:boolean"/>
<xs:attribute name="writable" type="xs:boolean"/>
<xs:attribute name="readable" type="xs:boolean"/>
<xs:attribute name="eventable" type="xs:boolean"/>
</xs:complexType>
</xs:element>
<xs:element name="Events">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" ref="Event"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Event">
<xs:complexType>
<xs:sequence>
<xs:group ref="DocDef"/>
<xs:element minOccurs="0" ref="Data"/>
</xs:sequence>
<xs:attribute name="name" use="required"/>
<xs:attribute name="optional" type="xs:boolean"/>
</xs:complexType>
</xs:element>
</xs:schema>
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://www.w3.org/XML/1998/namespace">
<xs:import schemaLocation="domain.xsd"/>
<xs:attribute name="base" type="xs:anyURI"/>
</xs:schema>
This diff is collapsed.
This diff is collapsed.
<?xml version="1.0" encoding="iso-8859-1"?>
<Domain xmlns="http://homegatewayinitiative.org/xml/dal/3.0"
id="hgi.dal.core">
<Modules>
<ModuleClass name="BooleanState">
<Doc>
<tt>BooleanState</tt> is the preferred module for modelling a
functionality corresponding to an underlying binary state. This
module should be used to abstract away from the actual datatype
and values in question. Note that the module does not define whether
the execution mode is blocking or non-blocking.
</Doc>
<Actions>
<Action name="get">
<Doc>Obtain the current associated state.</Doc>
<DataType>
<SimpleType type="boolean" />
</DataType>
</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>
<DataType>
<SimpleType type="boolean" />
</DataType>
</Arg>
</Args>
</Action>
</Actions>
</ModuleClass>
</Modules>
</Domain>
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.