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>
<dependency independent="p1" dependent="p2"/>
<dependency independent="p1" dependent="p2"/>
<dependency independent="p2" dependent="p3"/>
<dependency independent="p3" dependent="p4"/>
<dependency 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. |
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>
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>
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. |