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

100 lines
3.7 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<gem-graph-model>
<identity>
<anything_but_not_just_the_word_name>Modèle de test</anything_but_not_just_the_word_name>
<name value="(Trois dimères)"/>
<owner>2</owner>
<date>1629830000</date>
<version>1.0</version>
</identity>
<parameters id="0" date="0" author="Gaston Lagaffe">
<modelization>
<max_thread value="0"/>
<max_cycles value="13"/>
</modelization>
<space>
<dimension value="1"/>
<size value="39"/>
<site_multiplicity value="2"/>
<boundaries/>
</space>
</parameters>
<objects id="A list of connex states" date="1629830000" author="Jean Sirmai">
<state 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"/>
</state>
<state 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"/>
</state>
<state 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"/>
</state>
<!-- Just for the fun ! Can you imagine a rules in a next model ? -->
<state id="dimer 1-2" 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="2"/>
</state>
</objects>
<state id="initial state" date="1629830000" author="Jean Sirmai">
<!-- three dimers of three types (1-1, 2-2, 3-3) are defined in three locations-->
<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="2"/>
<arrow x="11" y="0" z="0" site="0" weight="2"/>
<arrow x="20" y="0" z="0" site="1" weight="3"/>
<arrow x="21" y="0" z="0" site="0" weight="3"/>
</state>
<produced_states id="a computed state" date="000" author="THE MATRIX (you know it...)">
</produced_states>
<transitions id="how many ?" date="000" author="THE SUPER MATRIX (you did'not know it ? Did you ?...)">
<transition id="0" date="1629830000" author="Jean Sirmai" probability="1"> <!-- moves a dimer to east-->
<state id="initial transition state" date="0" 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"/> <!-- 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-->
</state>
<state id="final transition state" date="0" author="Jean Sirmai"> <!-- 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 ( ;-))-->
</state>
</transition>
</transitions>
<ref></ref>
<quote></quote>
</gem-graph-model>