This is an old revision of the document!


Hekate Markup Language

1. ARDML basic use

Tag sequence is required.

<attml version="1.0">
       <att name="Thermostat">
 
       </att>
</attml>
 
<ardml version="1.0">
     <property_list>
          <property pid="p1">
               <attref name="Thermostat"/>
          </property>
          <property pid="p2">
               <attref name="Time"/>
               <attref name="Temp"/>
          </property>
          <property pid="p3">
               <attref name="Time"/>
          </property>
          <property pid="p4"p>
               <attref name="Temp"/>
          </property>
          <property pid="p5">
               <attref name="therm_sett"/>
          </property>
     </property_list>
 
     <tph>
          <trans src="p1" dst="p2"/>
          <trans src="p2" dst="p3"/>
          <trans src="p2" dst="p4"/>
          <trans src="p4" dst="p5"/>
     </tph>
 
     <ard>
          <dep independent="p1" dependent="p2"/>
          <dep independent="p1" dependent="p2"/>
          <dep independent="p2" dependent="p3"/>
          <dep independent="p3" dependent="p4"/>
          <dep independent="p2" dependent="p4"/>
     </ard>
</ardml>

2. Properties defining

Basic syntax:

<property_list>
          <property pid="p1">
               <attref name="aname_1_1"/>
               ...
               <attref name="aname_1_n"/>
          </property>
		...
		<property pid="pn">
               <attref name="aname_n_1"/>
               ...
               <attref name="aname_n_m"/>
          </property>
</property_list>
  • Properties are defined in <property_list>…</property_list> section. This section must contain all properties which are used in ARD diagram.
  • Single property is defined by <property> tag, with following parameters:
Parameter name Required Description
pid (necessary) defines property name tag.
Value type: string.
Constraints: no constraints.
  • Single property contains any number of attributes. List of attributes we can define by <attref> tag with following parameters:
Parameter name Required Description
name (necessary) defines attribute name.
Value type: string.
Constraints: no spaces allowed.

3. TPH diagram defining

Basic syntax:

     <tph>
          <trans src="p1" dst="p2"/>
          <trans src="p2" dst="p3"/>
          <trans src="p2" dst="p4"/>
		...
          <trans src="pn" dst="pm"/>
     </tph>
  • TPH diagram is definied in <tph>…</tph> section. TPH diagram contains relations called branches.
  • Branch defining begins the <trans> tag, which has following parameters:
Parameter name Required Description
src (necessary) defines parent in relations parent-child.
Value type: string.
Constraints: the attribute which has name tag equal to parameter parent value must be defined earlier in <properties> section.
dst (necessary) defines child in relations parent-child.
Value type: string.
Constraints: the attribute which has name tag equal to parameter child value must be defined earlier in <properties> section.

4. Dependencies defining

Basic syntax:

<ard>
     <dependency independent="p1" dependent="p2"/>
     <dependency independent="p2" dependent="p3"/>
     ...
     <dependency independent="px" dependent="py"/>
     ...
     <dependency independent="px" dependent="pz"/>
</ard>
  • Dependencies definig begins <ard> tag. This tag hasn't parameters. Each dependence is defined as pair of properties, where the first independent is the property tag name independed from the second property dependent.
Parameter name Required Description
independent (necessary) defines property independent from property defined as dependent.
Value type: string.
Constraints: the property which has pid tag equal to parameter independent value must be defined earlier in <properties> section.
dependent (necessary) defines property dependent from property defined as independent.
Value type: string.
Constraints: the property which has pid tag equal to parameter dependent value must be defined earlier in <properties> section.
hekate/hekate_markup_language.1201178742.txt.gz · Last modified: 2019/06/27 16:00 (external edit)
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0