gem-graph-server/debian/var/models/XML model example (in progr...

141 lines
3.8 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<gem-graph-model version="0.1">
<!-- Model identity informations -->
<identity>
<name>Modèle de test</name>
<owner>Gaston Lagaffe</owner>
<owner_id>2</owner_id>
<date>1629830000</date>
<version>1.0</version>
</identity>
<!-- Model parameters -->
<parameters id="texte" date="0" author="Gaston Lagaffe">
<simulation>
<max_thread value="0"/>
<max_cycles value="13"/>
</simulation>
<space-param>
<dimension value="1"/>
<size value="39"/>
<site_multiplicity value="2"/>
</space-param>
</parameters>
<!-- Model objects definition -->
<objects id="texte" date="1629830000" author="Jean Sirmai">
<object id="dimer 1-1" date="1629830000" author="Jean Sirmai">
<arrow x="0" y="0" z="0" site="1" weight="1"/>
<arrow x="1" y="0" z="0" site="0" weight="1"/>
</object>
<object id="dimer 2-2" date="1629830000" author="Jean Sirmai">
<arrow x="0" y="0" z="0" site="1" weight="2"/>
<arrow x="1" y="0" z="0" site="0" weight="2"/>
</object>
<object id="dimer 3-3" date="1629830000" author="Jean Sirmai">
<arrow x="0" y="0" z="0" site="1" weight="3"/>
<arrow x="1" y="0" z="0" site="0" weight="3"/>
</object>
</objects>
<!-- Saved space description (initial space is sequence 0) -->
<savestates id="texte" date="1629830000" author="THE MATRIX">
<space id="initial" date="1629830000" author="Jean Sirmai" sequence="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="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"/>
</space>
</savestates>
<!-- Model transitions definition (rules) -->
<transitions id="texte" date="1629830000" author="THE SUPER MATRIX">
<transition id="texte" date="1629830000" author="Bob" parent="texte"
probability="1">
<quote id="texte" date="1629830000" author="Bob" lang="fr">
Moves a dimer to east.
</quote>
<if>
<arrow x="0" y="0" z="0" site="1" weight="1"/>
<arrow x="1" y="0" z="0" site="0" weight="1">
<quote lang="fr">A dimer is identified</quote>
</arrow>
<arrow x="2" y="0" z="0" site="1" weight="0">
<quote lang="fr">
The east location next this dimer is empty
</quote>
</arrow>
<arrow x="3" y="0" z="0" site="0" weight="0">
<quote lang="fr">
In this very simple model, I do not need to check this condition
</quote>
</arrow>
</if>
<then>
<quote>
Therefore I can (and I want to) move it to its next east location
</quote>
<arrow x="0" y="0" z="0" site="1" weight="0"/>
<arrow x="1" y="0" z="0" site="0" weight="0">
<quote>The identified dimer no more exists ( :-(( </quote>
</arrow>
<arrow x="1" y="0" z="0" site="1" weight="1"/>
<arrow x="2" y="0" z="0" site="0" weight="1">
<quote>
Happily, it is now rebuilt at its east location ( ;-))
</quote>
</arrow>
</then>
</transition>
</transitions>
<!-- Non context-specific tags, designed to annotate anything -->
<ref id="texte" date="1629830000" author="Jean" lang="ref"></ref>
<quote id="texte" date="1629830000" author="Jean" lang="ref"></quote>
</gem-graph-model>