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 736 additions and 0 deletions
<?xml version="1.0" encoding="UTF-8" ?>
<project name="_setClassPath" default="build">
<!-- INTERNAL: _setClassPath
Set the internal classpath for building the project by reading from the classpathfile, or empty.
-->
<target name="_setClassPath">
<!-- set the classpath from the file, only when the _classpathfile exists. Otherwise define an empty path element -->
<available property="available.classpathfile" file="${path.gen.classpathfile}" />
<if><isset property="available.classpathfile" />
<then>
<path id="id.libraries">
<!--fileset dir="${path.base}" includesfile="${path.gen.classpathfile}" excludes="**/*"/ -->
<fileset dir="${path.base}" includesfile="${path.gen.classpathfile}" />
</path>
</then>
<else>
<path id="id.libraries">
</path>
</else>
</if>
</target>
</project>
<?xml version="1.0" encoding="UTF-8" ?>
<project name="all" default="build">
<!-- TASK: all
Clean up, build and collect
-->
<target name="all">
<runtarget target="clean" />
<runtarget target="build" />
<runtarget target="collect" />
</target>
</project>
<?xml version="1.0" encoding="UTF-8" ?>
<project name="allforced" default="build">
<!-- TASK: allforced
Clean up, build and collect.
Includes a forced update to all dependent projects
-->
<target name="allforced">
<var name="dependency.projects.forcebuild" value="" />
<runtarget target="all" />
</target>
</project>
<?xml version="1.0" encoding="UTF-8" ?>
<project name="build" default="build">
<!-- TASK: build
Main target
-->
<target name="build">
<echo>----</echo>
<echo>Building project "${projectname}"</echo>
<!-- don't run the build if it is a global build and the project property "global.build.ignore" is set -->
<if><not>
<and>
<isset property="global.build" />
<isset property="global.build.ignore" />
</and>
</not>
<then>
<runtarget target="compile" />
<runtarget target="buildjar" />
</then>
<else>
<echo>+--------------------------------------------------------------------------------+</echo>
<echo>| PROJECT IS NOT BUILD. Global build, but "global.build.ignore" property is set. |</echo>
<echo>+--------------------------------------------------------------------------------+</echo>
</else>
</if>
</target>
</project>
<?xml version="1.0" encoding="UTF-8" ?>
<project name="buildjar" default="build">
<!-- TASK: buildjar
Build the jar file
-->
<target name="buildjar" depends="_getBuildNumber">
<!-- Build the base jar file -->
<if><not>
<equals arg1="${manifest}" arg2="none" trim="true" />
</not>
<then>
<jar destfile="${file.jar}" manifest="${manifest}" whenmanifestonly="create">
<fileset dir="${path.gen.classes}">
<include name="**/*.class" />
</fileset>
<manifest>
<!-- Who is building this jar? -->
<attribute name="Built-By" value="${user.name}"/>
<attribute name="Build-Time" value="${build.time}"/>
<attribute name="SVN-Revision" value="${svn.revision}"/>
</manifest>
</jar>
</then>
<else>
<jar destfile="${file.jar}" whenmanifestonly="create">
<fileset dir="${path.gen.classes}">
<include name="**/*.class" />
</fileset>
<manifest>
<!-- Who is building this jar? -->
<attribute name="Built-By" value="${user.name}"/>
<attribute name="Build-Time" value="${build.time}"/>
<attribute name="SVN-Revision" value="${svn.revision}"/>
</manifest>
</jar>
</else>
</if>
<!-- Add resources, if necessary -->
<available property="available.resources" file="resources" />
<if><isset property="available.resources" />
<then>
<jar destfile="${file.jar}" update="true">
<fileset dir="${path.resources}">
<include name="**/*" />
</fileset>
</jar>
</then>
</if>
<!-- Include external resources in the jar file -->
<runtarget target="_includeExternalResourcesInJar" />
<!-- Include external manifest in the jar file -->
<!-- <runtarget target="_importManifest" /> -->
</target>
</project>
<?xml version="1.0" encoding="UTF-8" ?>
<project name="clean" default="build">
<!-- TASK: Clean
Removes all generated files from the "gen" directory for a project
-->
<target name="clean" depends="_cleanDependentProjects">
<echo>Cleaning project "${projectname}"</echo>
<delete dir="${path.gen}"/>
<delete dir="${path.gen.documentation}"/>
<!-- remove the directory for the domain -->
<if>
<isset property="omain" />
<then>
<delete dir="${path.gen.domain}/${omain}" />
</then>
</if>
</target>
</project>
<?xml version="1.0" encoding="UTF-8" ?>
<project name="collect" default="build">
<!-- TASK: collect
collect the results in a common directory. If $omain is set, the artifacts are also collected in
the specified Domain directory.
-->
<target name="collect" depends="_prepare">
<echo>Collecting artifacts from "${projectname}"</echo>
<if>
<isset property="omain" />
<then>
<copy todir="${path.gen.domain}/${omain}">
<fileset dir="${path.gen}" includes="*.jar"/>
</copy>
</then>
</if>
<copy todir="${path.gen.collection}">
<fileset dir="${path.gen}" includes="*.jar"/>
</copy>
</target>
</project>
<?xml version="1.0" encoding="UTF-8" ?>
<project name="compile" default="build">
<!-- TASK: compile
Compile the source code
-->
<target name="compile" depends="_prepare,_preparebuild,_setClassPath">
<echo>Java.source=${java.source}, Java.target=${java.target}</echo>
<if><equals arg1="${uselint}" arg2="true" trim="true" />
<!-- Enable -Xlint compiler warnings -->
<then>
<javac destdir="${path.gen.classes}"
includes="**/*.java"
classpathref="id.libraries"
srcdir="${path.src}"
debug="on"
target="${java.target}"
source="${java.source}"
includeantruntime="false"
listfiles="on">
<compilerarg value="-Xlint"/>
</javac>
</then>
<!-- No special compiler warnings -->
<else>
<javac destdir="${path.gen.classes}"
includes="**/*.java"
classpathref="id.libraries"
srcdir="${path.src}"
debug="on"
target="${java.target}"
source="${java.source}"
includeantruntime="false"
listfiles="on">
</javac>
</else>
</if>
</target>
</project>
<?xml version="1.0" encoding="UTF-8" ?>
<project name="compilenative" default="build">
<!--
Compile native code
-->
<target name="compilenative" depends="_prepare, _buildNative">
</target>
</project>
<?xml version="1.0" encoding="UTF-8" ?>
<project name="doc" default="build">
<!-- TASK: doc
Generate documentation for a project
-->
<target name="doc" depends="_prepare,_setClassPath">
<javadoc destdir="${path.gen.documentation}"
classpathref="id.libraries"
sourcepath="${path.src}"
>
</javadoc>
</target>
</project>
<?xml version="1.0" encoding="UTF-8" ?>
<project name="eclipse" default="build">
<!-- TASK: eclipse
Set properties, generate the classpath etc
-->
<target name="eclipse" depends="build, _setClassPath">
<!-- Writing the .classpath file -->
<!-- using echoxml is not possible together with the "for" statement, so <echo> and escapes must be used -->
<echo file="${path.eclipse.classpathfile}">&lt;?xml version="1.0" encoding="UTF-8"?&gt;${line.separator}&lt;classpath&gt;${line.separator}&lt;classpathentry kind="src" path="src"/&gt;${line.separator}&lt;classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/&gt;${line.separator}</echo>
<for param="p">
<path refid="id.libraries" />
<sequential>
<echo file="${path.eclipse.classpathfile}" append="true">&lt;classpathentry kind="lib" path="@{p}"/&gt;${line.separator}</echo>
</sequential>
</for>
<echo file="${path.eclipse.classpathfile}" append="true">&lt;classpathentry kind="output" path="classes"/&gt;${line.separator}&lt;/classpath&gt;${line.separator}</echo>
<!-- Writing the .project file -->
<echoxml file="${path.eclipse.projectfile}">
<projectDescription>
<name>${projectname}</name>
<comment></comment>
<projects></projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
<linkedResources>
<link>
<name>classes</name>
<type>2</type>
<location>${path.gen.classes}</location>
</link>
</linkedResources>
</projectDescription>
</echoxml>
<!-- Writing the settings/org.eclipse.jdt.core.prefs file -->
<mkdir dir="${path.eclipse.settingsdir}" />
<echo file="${path.eclipse.settingsfile}">org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled${line.separator}</echo>
<echo file="${path.eclipse.settingsfile}" append="true">org.eclipse.jdt.core.compiler.codegen.targetPlatform=${java.target}${line.separator}</echo>
<echo file="${path.eclipse.settingsfile}" append="true">org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve${line.separator}</echo>
<echo file="${path.eclipse.settingsfile}" append="true">org.eclipse.jdt.core.compiler.compliance=${java.source}${line.separator}</echo>
<echo file="${path.eclipse.settingsfile}" append="true">org.eclipse.jdt.core.compiler.debug.lineNumber=generate${line.separator}</echo>
<echo file="${path.eclipse.settingsfile}" append="true">org.eclipse.jdt.core.compiler.debug.localVariable=generate${line.separator}</echo>
<echo file="${path.eclipse.settingsfile}" append="true">org.eclipse.jdt.core.compiler.debug.sourceFile=generate${line.separator}</echo>
<echo file="${path.eclipse.settingsfile}" append="true">org.eclipse.jdt.core.compiler.problem.assertIdentifier=warning${line.separator}</echo>
<echo file="${path.eclipse.settingsfile}" append="true">org.eclipse.jdt.core.compiler.problem.enumIdentifier=warning${line.separator}</echo>
<echo file="${path.eclipse.settingsfile}" append="true">org.eclipse.jdt.core.compiler.source=${java.source}${line.separator}</echo>
</target>
</project>
<?xml version="1.0" encoding="ISO-8859-1"?>
This property indicates the ON/OFF status.
This property indicates the installation location
This property indicates the instantaneous power consumption of the device in watts.
This property indicates the measured temperature value in units of 0.1C.
This property indicates whether the door/cover is open or closed.
Washing machine setting
This property indicates the current stage of the washing cycle.
This property indicates the time remaining to complete the current washing cycle in the HH:MM:SS format.
Reservation ON/OFF
Timer value (HH:MM)
Timer value (HH:MM)
<?xml version="1.0" encoding="ISO-8859-1"?><html xmlns:dal="http://hgi.org/xml/dal/1.0" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Domain com.telekom</title>
</head>
<body>
<h1>Domain com.telekom</h1>
<h2>Devices</h2>
<ul>
<li>
<a href="switch.power.html">PowerSwitch</a>
</li>
</ul>
</body>
</html>
<?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.
<?xml version="1.0" encoding="ISO-8859-1"?>
PowerSwitch
Telekom Innovation Laboratories
This device is intended as a demonstration of how to use the
abstract modules defined in the HGI Core domain. The
vendor has provided a proprietry module with two operations
on and off. This is clearly a candidate for the
module class BooleanState.
The proprietry interface for turning the switch on and off.
Actions for setting the state to on or off
and for querying the state.
Turn the switch on.
Turn the switch off.
Query the state of the switch. Returns the string "on"
or "off".
An event that indicates the new state of the switch.
<?xml version="1.0" encoding="ISO-8859-1"?>
This property sets the ON/OFF status.
This property indicates the installation location
This indicates cumulative power consumption of the device in increments of 0.001kWh.
Timer value (HH:MM)
This reads the open=true or closed=false status of a door
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml version="1.0" encoding="ISO-8859-1"?><html xmlns:dal="http://homegatewayinitiative.org/xml/dal/2.0" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Domain hgi.dal.core</title>
</head>
<body>
<h1>Domain hgi.dal.core</h1>
<h2>Devices</h2>
<ul/>
</body>
</html>