65 lines
2.2 KiB
Python
65 lines
2.2 KiB
Python
<?xml version="1.0" encoding="UTF-8"?>
|
|
<gem-graph-model version="0.2.1">
|
|
|
|
<identity>
|
|
<name>Chrysalide</name>
|
|
|
|
<owner>Léontine qui patine</owner>
|
|
|
|
<owner_id>2</owner_id>
|
|
|
|
<date>1630000000</date>
|
|
|
|
<version>1.0</version>
|
|
|
|
<g_ref id="diff" date="1630000000" author="Léontine" lang="en">Qui ça ?'</g_ref>
|
|
</identity>
|
|
|
|
<!-- Model transitions definition (rules) -->
|
|
<!-- In this version : <xs:sequence minOccurs="1" maxOccurs="unbounded">-->
|
|
<!-- Transitions should be edited by hand and written in a 'human-readable' format -->
|
|
|
|
<conditions id="random walk of dimers" date="1630000000" author="Zazard le lézard !">
|
|
|
|
<condition site="1" weight="1" node_id="1" parent="0" x="0"/>
|
|
<condition site="2" weight="1" node_id="2" parent="1" x="1"/>
|
|
<!-- as soon as conditions 1 and 2 are satisfied, a dimer is identified at location (0,1). -->
|
|
|
|
<condition site="1" weight="0" node_id="3" parent="2" x="2"/>
|
|
<!-- as soon as condition 3 is satisfied,
|
|
the neighbouring space unhit to East of the dimer is empty
|
|
and the dimer identified by conditions (1,2) can be moved to East. -->
|
|
|
|
<condition site="2" weight="0" node_id="4" parent="2" x="-1"/>
|
|
<!-- as soon as condition 4 is satisfied,
|
|
the neighbouring space unit to West of the dimer is empty
|
|
and the dimer identified by conditions (1,2) can be moved to West. -->
|
|
|
|
</conditions>
|
|
|
|
<transitions>
|
|
|
|
<transition id="move_a_dimer_to_east" date="1630000000" author="Pas moi..."
|
|
parent="3" probability="1">
|
|
|
|
<arrow site="1" weight="0" x="0"/>
|
|
<arrow site="2" weight="0" x="1"/>
|
|
<arrow site="1" weight="1" x="1"/>
|
|
<arrow site="2" weight="1" x="2"/>
|
|
|
|
</transition>
|
|
|
|
<transition id="move_a_dimer_to_west" date="1630000000" author="Ni moi !"
|
|
parent="4" probability="1">
|
|
|
|
<arrow site="1" weight="0" x="0"/>
|
|
<arrow site="2" weight="0" x="1"/>
|
|
<arrow site="2" weight="1" x="0"/>
|
|
<arrow site="1" weight="1" x="1"/>
|
|
|
|
</transition>
|
|
|
|
</transitions>
|
|
|
|
</gem-graph-model>
|