2021-09-16 12:54:28 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
|
|
|
<!-- TODO DTD or XML Schema-->
|
|
|
|
|
|
|
|
<gem-graph-model version="0.1">
|
|
|
|
|
|
|
|
<!-- Model identity informations -->
|
|
|
|
<identity>
|
2021-09-18 01:00:48 +02:00
|
|
|
<name>Model created for testing purposes</name>
|
|
|
|
<name value="(Three dimers)"/>
|
|
|
|
<owner>Jean Sirmai</owner>
|
2021-09-17 16:14:04 +02:00
|
|
|
<owner_id>2</owner_id>
|
|
|
|
<date>1629830000</date> <!--Warning: it's an arbitrary unchecked date...-->
|
2021-09-16 12:54:28 +02:00
|
|
|
<version>1.0</version>
|
|
|
|
|
|
|
|
</identity>
|
|
|
|
|
|
|
|
<!-- Model parameters -->
|
2021-09-18 01:00:48 +02:00
|
|
|
<parameters id="test" date="1629830000" author="Jean Sirmai">
|
2021-09-16 12:54:28 +02:00
|
|
|
<modelization>
|
|
|
|
<max_thread value="0"/> <!--Why "0" ?-->
|
|
|
|
<max_cycles value="13"/>
|
|
|
|
|
|
|
|
</modelization>
|
|
|
|
|
2021-09-18 01:00:48 +02:00
|
|
|
<space_param>
|
2021-09-16 12:54:28 +02:00
|
|
|
<dimension value="1"/> <!-- TODO redundancy here: dimension is given by the zero values of z and y-->
|
|
|
|
<size x="39" y="0" z="0"/> <!-- In this example of random walk, I wish I could see the whole space in a single line of the monitoring CLI-->
|
|
|
|
<site_multiplicity value="2"/> <!-- Indicates that there are two sites per cell-->
|
|
|
|
<boundaries/> <!-- TODO a proposition for boundaries encoding: -->
|
|
|
|
<!-- X="00" no boundaries X="||" boundaries west and east X="|0" boundary west only X="0|" boundary east-->
|
|
|
|
<!-- X="|0" indicates that: a particle which moves beyond the east boundary will reenter on the west side-->
|
|
|
|
<!-- X="|0" : no particle can move beyond the west boundary-->
|
2021-09-17 16:14:04 +02:00
|
|
|
|
2021-09-18 01:00:48 +02:00
|
|
|
</space_param>
|
2021-09-16 12:54:28 +02:00
|
|
|
|
|
|
|
</parameters>
|
|
|
|
|
|
|
|
<!-- Model objects definition -->
|
|
|
|
<objects>
|
2021-09-18 01:00:48 +02:00
|
|
|
<object id="dimer" date="1629830000" author="Jean Sirmai">
|
2021-09-16 12:54:28 +02:00
|
|
|
<arrow x="0" y="0" z="0" site="0" weight="0"/>
|
|
|
|
<arrow x="0" y="0" z="0" site="1" weight="1"/>
|
|
|
|
<arrow x="1" y="0" z="0" site="0" weight="1"/>
|
|
|
|
<arrow x="1" y="0" z="0" site="1" weight="0"/>
|
|
|
|
<!-- A dimer is made of two linked adjacent particles.-->
|
|
|
|
<!-- Site 1 of particle 0 points at east to next particle.-->
|
|
|
|
<!-- Site 0 of particle 1 points at west to previous particle.-->
|
|
|
|
|
|
|
|
</object>
|
|
|
|
|
|
|
|
</objects>
|
|
|
|
|
|
|
|
<!-- Space description (initial state) -->
|
2021-09-18 01:00:48 +02:00
|
|
|
<space id="test" date="1629830000" author="Jean Sirmai">
|
2021-09-16 12:54:28 +02:00
|
|
|
<arrow x="0" y="0" z="0" site="1" weight="1"/>
|
|
|
|
<arrow x="1" y="0" z="0" site="0" weight="1"/>
|
|
|
|
<arrow x="10" y="0" z="0" site="1" weight="1"/>
|
|
|
|
<arrow x="11" y="0" z="0" site="0" weight="1"/>
|
|
|
|
<arrow x="20" y="0" z="0" site="1" weight="1"/>
|
|
|
|
<arrow x="21" y="0" z="0" site="0" weight="1"/>
|
|
|
|
<!-- three dimers have been defined-->
|
|
|
|
|
|
|
|
</space>
|
|
|
|
|
|
|
|
<!-- Saved space description (saved states) -->
|
2021-09-18 01:00:48 +02:00
|
|
|
<savestates id="test" date="1629830000" author="Jean Sirmai"> <!-- TODO or NOT TODO (not today...)-->
|
|
|
|
<space id="test" date="1629830000" author="Jean Sirmai">
|
2021-09-16 12:54:28 +02:00
|
|
|
</space>
|
|
|
|
|
|
|
|
</savestates>
|
|
|
|
|
|
|
|
<!-- Model transitions definition (rules) -->
|
2021-09-18 01:00:48 +02:00
|
|
|
<transitions id="test" date="1629830000" author="Jean Sirmai">
|
|
|
|
<transition id="0" date="1629830000" author="Jean Sirmai" probability="1"> <!-- moves a dimer to east-->
|
2021-09-16 12:54:28 +02:00
|
|
|
<if>
|
|
|
|
<arrow x="0" y="0" z="0" site="1" weight="1"/>
|
|
|
|
<arrow x="1" y="0" z="0" site="0" weight="1"/> <!-- a dimer is identified-->
|
|
|
|
<!-- the local space origin is its "west" particule-->
|
|
|
|
<arrow x="2" y="0" z="0" site="1" weight="0"/> <!-- the east location next this dimer is empty-->
|
|
|
|
<arrow x="3" y="0" z="0" site="0" weight="0"/> <!-- In this very simple model, I do not need to check this condition-->
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<then> <!-- Therefore I can (and I want to) move it to its next east location-->
|
|
|
|
<arrow x="0" y="0" z="0" site="1" weight="0"/>
|
|
|
|
<arrow x="1" y="0" z="0" site="0" weight="0"/> <!-- The identified dimer no more exists ( :-(( -->
|
|
|
|
<arrow x="1" y="0" z="0" site="1" weight="1"/>
|
|
|
|
<arrow x="2" y="0" z="0" site="0" weight="1"/> <!-- Happily, it is now rebuilt at its east location ( ;-))-->
|
|
|
|
|
|
|
|
</then>
|
|
|
|
|
|
|
|
</transition>
|
|
|
|
|
|
|
|
</transitions>
|
|
|
|
|
|
|
|
<!-- Non context-specific tags -->
|
2021-09-18 01:00:48 +02:00
|
|
|
<ref id="Best reference!" date="1629830000" author="Jean Sirmai" lang="">
|
|
|
|
https://www.a-lec.org
|
|
|
|
</ref>
|
|
|
|
<quote id="Best quote" date="1629830000" author="Jean Sirmai" lang="">
|
|
|
|
This is a quote.
|
|
|
|
</quote>
|
2021-09-16 12:54:28 +02:00
|
|
|
|
|
|
|
</gem-graph-model>
|