2024-04-20 11:17:01 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<gem-graph-model version="0.2.1">
|
|
|
|
|
2024-11-01 14:35:31 +01:00
|
|
|
<identity !-- TODO define a key >
|
|
|
|
<name>model name </name>
|
|
|
|
<owner>owner</owner>
|
|
|
|
<owner_id>owner_id</owner_id>
|
|
|
|
<date>2021</date>
|
2024-04-20 11:17:01 +02:00
|
|
|
<version>1.0</version>
|
2024-11-01 14:35:31 +01:00
|
|
|
<g_ref id="text" date="date" author="author" lang="en">Ref</g_ref>
|
2024-04-20 11:17:01 +02:00
|
|
|
|
|
|
|
</identity>
|
|
|
|
|
2024-11-01 14:35:31 +01:00
|
|
|
<parameters id="text" date="date" author="author">
|
2024-04-20 11:17:01 +02:00
|
|
|
<simulation>
|
|
|
|
<max_thread>0</max_thread>
|
|
|
|
<max_cycles>9</max_cycles>
|
|
|
|
|
|
|
|
</simulation>
|
|
|
|
|
|
|
|
<space-param>
|
|
|
|
<!-- loop_on_zero="true" anything moved before zero reenters at the end of space-->
|
|
|
|
<!-- loop_on_zero="false" anything moved before zero is lost-->
|
|
|
|
<!-- loop_on_max="true" anything moved beyond max reenters at the zero of space-->
|
|
|
|
<!-- loop_on_max="false" anything moved beyond max is lost-->
|
|
|
|
|
|
|
|
<dimension x="29"/>
|
|
|
|
|
2024-11-01 14:35:31 +01:00
|
|
|
<!-- Site_multiplicity = number of sites in a space unit. -->
|
2024-04-20 11:17:01 +02:00
|
|
|
<!-- Each site points towards a neighbouring space unit. -->
|
|
|
|
<!-- Several arrows can be stacked in the same site. -->
|
|
|
|
|
|
|
|
<site_multiplicity>3</site_multiplicity>
|
|
|
|
|
|
|
|
</space-param>
|
|
|
|
|
|
|
|
</parameters>
|
|
|
|
|
|
|
|
<!-- Model objects definition -->
|
|
|
|
|
2024-11-01 14:35:31 +01:00
|
|
|
<objects id="only dimers in this model" date="date" author="author">
|
|
|
|
<object id="a dimer" date="date" author="author">
|
2024-04-20 11:17:01 +02:00
|
|
|
<arrow site="1" weight="1" x="0"/>
|
|
|
|
<arrow site="2" weight="1" x="1"/>
|
|
|
|
</object>
|
|
|
|
|
|
|
|
</objects>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Saved space description (initial space is sequence 0) -->
|
|
|
|
|
2024-11-01 14:35:31 +01:00
|
|
|
<savedstates id="texte" date="date" author="author">
|
|
|
|
<state id="initial" date="date" author="author">
|
2024-04-20 11:17:01 +02:00
|
|
|
<arrow site="0" weight="1" x="0"/>
|
|
|
|
<arrow site="1" weight="1" x="1"/>
|
|
|
|
<arrow site="0" weight="1" x="10"/>
|
|
|
|
<arrow site="1" weight="1" x="11"/>
|
|
|
|
<arrow site="0" weight="1" x="20"/>
|
|
|
|
<arrow site="1" weight="1" x="21"/>
|
|
|
|
|
|
|
|
<!-- Three dimers 1-1 are drawn in the global space
|
|
|
|
at locations (0,1) (10,11) and (20,21) -->
|
|
|
|
|
|
|
|
</state>
|
|
|
|
|
|
|
|
</savedstates>
|
|
|
|
|
|
|
|
<!-- Model transitions definition (rules) -->
|
|
|
|
<!-- In this version : <xs:sequence minOccurs="0" maxOccurs="unbounded">-->
|
|
|
|
<!-- Transitions should be edited by hand and written in a 'human-readable' format -->
|
|
|
|
|
2024-11-01 14:35:31 +01:00
|
|
|
<conditions id="random walk of dimers" date="date" author="author">
|
2024-04-20 11:17:01 +02:00
|
|
|
|
|
|
|
<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 atation (0,1). -->
|
|
|
|
|
|
|
|
<condition site="1" weight="0" node_id="3" parent="2" x="2"/>
|
|
|
|
<!-- as soon as condition 3 is satisfied,
|
|
|
|
the neighbouring space unit 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>
|
|
|
|
|
2024-11-01 14:35:31 +01:00
|
|
|
<transition id="move_a_dimer_to_east" date="date" author="author"
|
2024-04-20 11:17:01 +02:00
|
|
|
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>
|
|
|
|
|
2024-11-01 14:35:31 +01:00
|
|
|
<transition id="move_a_dimer_to_west" date="date" author="author"
|
2024-04-20 11:17:01 +02:00
|
|
|
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>
|