WIP: Changing names (node_id, condition, transition)
This commit is contained in:
parent
c1754a8928
commit
42a0f9ca2b
|
@ -0,0 +1,111 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<gem-graph-model version="0.2">
|
||||||
|
|
||||||
|
<!-- 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>
|
||||||
|
|
||||||
|
<g_ref id="texte" date="1629830000" author="Jean" lang="en">Ref</g_ref>
|
||||||
|
</identity>
|
||||||
|
|
||||||
|
<!-- Model parameters -->
|
||||||
|
<parameters id="texte" date="0" author="Gaston Lagaffe">
|
||||||
|
<simulation>
|
||||||
|
<max_thread>0</max_thread>
|
||||||
|
<max_cycles>9</max_cycles>
|
||||||
|
|
||||||
|
</simulation>
|
||||||
|
|
||||||
|
<space-param>
|
||||||
|
<dimension>1</dimension>
|
||||||
|
<size x="29" y="0" z="0"/>
|
||||||
|
<site_multiplicity>3</site_multiplicity>
|
||||||
|
|
||||||
|
</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="2" 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="2" 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="2" 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="2" weight="1"/>
|
||||||
|
|
||||||
|
<arrow x="10" y="0" z="0" site="1" weight="1"/>
|
||||||
|
<arrow x="11" y="0" z="0" site="2" weight="1"/>
|
||||||
|
|
||||||
|
<arrow x="20" y="0" z="0" site="1" weight="1"/>
|
||||||
|
<arrow x="21" y="0" z="0" site="2" weight="1"/>
|
||||||
|
|
||||||
|
</space>
|
||||||
|
|
||||||
|
</savestates>
|
||||||
|
|
||||||
|
<!-- Model transitions definition (rules) -->
|
||||||
|
<!-- In this version : <xs:sequence minOccurs="0" maxOccurs="unbounded">-->
|
||||||
|
<!-- As long as there is no client, transitions have to be edited by hand
|
||||||
|
and should be written using a 'human-readable' format -->
|
||||||
|
<conditions id="random walk of dimers" date="1629822222" author="Jean">
|
||||||
|
|
||||||
|
<condition x= "0" y="0" z="0" site="1" weight="1" node_id="1" parent="0"/>
|
||||||
|
<condition x= "1" y="0" z="0" site="2" weight="1" node_id="2" parent="1"/>
|
||||||
|
<condition x= "2" y="0" z="0" site="1" weight="0" node_id="3" parent="2"/>
|
||||||
|
<condition x="-1" y="0" z="0" site="2" weight="0" node_id="4" parent="2"/>
|
||||||
|
|
||||||
|
</conditions>
|
||||||
|
|
||||||
|
<transitions>
|
||||||
|
|
||||||
|
<transition id="move_a_dimer_to_east" date="1629811111" author="Jean"
|
||||||
|
parent="3" probability="1">
|
||||||
|
|
||||||
|
<arrow x="0" y="0" z="0" site="1" weight="0"/>
|
||||||
|
<arrow x="1" y="0" z="0" site="2" weight="0"/>
|
||||||
|
<arrow x="1" y="0" z="0" site="1" weight="1"/>
|
||||||
|
<arrow x="2" y="0" z="0" site="2" weight="1"/>
|
||||||
|
|
||||||
|
</transition>
|
||||||
|
|
||||||
|
<transition id="move_a_dimer_to_west" date="1629811112" author="Jean"
|
||||||
|
parent="4" probability="1">
|
||||||
|
|
||||||
|
<arrow x= "0" y="0" z="0" site="1" weight="0"/>
|
||||||
|
<arrow x= "1" y="0" z="0" site="2" weight="0"/>
|
||||||
|
<arrow x= "0" y="0" z="0" site="2" weight="1"/>
|
||||||
|
<arrow x="-1" y="0" z="0" site="1" weight="1"/>
|
||||||
|
|
||||||
|
</transition>
|
||||||
|
|
||||||
|
</transitions>
|
||||||
|
|
||||||
|
</gem-graph-model>
|
|
@ -0,0 +1,199 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
||||||
|
<!-- https://www.freeformatter.com/xml-validator-xsd.html -->
|
||||||
|
<!-- https://www.w3schools.com/xml/el_attribute.asp -->
|
||||||
|
<xs:attribute name="id" type="xs:string"/>
|
||||||
|
<xs:attribute name="node_id" type="xs:integer"/>
|
||||||
|
<xs:attribute name="date" type="xs:integer"/>
|
||||||
|
<xs:attribute name="name" type="xs:string"/>
|
||||||
|
<xs:attribute name="lang" type="xs:string"/>
|
||||||
|
<xs:attribute name="owner" type="xs:string"/>
|
||||||
|
<xs:attribute name="owner_id" type="xs:integer"/>
|
||||||
|
<xs:attribute name="author" type="xs:string"/>
|
||||||
|
<xs:attribute name="version" type="xs:float"/>
|
||||||
|
<xs:attribute name="sequence" type="xs:integer"/>
|
||||||
|
<xs:attribute name="probability" type="xs:integer"/>
|
||||||
|
<xs:attribute name="parent" type="xs:integer"/>
|
||||||
|
<xs:attribute name="x" type="xs:integer" default="0"/>
|
||||||
|
<xs:attribute name="y" type="xs:integer" default="0"/>
|
||||||
|
<xs:attribute name="z" type="xs:integer" default="0"/>
|
||||||
|
<xs:attribute name="site" type="xs:integer" default="0"/>
|
||||||
|
<xs:attribute name="weight" type="xs:integer" default="0"/>
|
||||||
|
|
||||||
|
|
||||||
|
<xs:attributeGroup name="id_date_author">
|
||||||
|
<xs:attribute ref="id"/>
|
||||||
|
<xs:attribute ref="date"/>
|
||||||
|
<xs:attribute ref="author"/>
|
||||||
|
</xs:attributeGroup>
|
||||||
|
|
||||||
|
<xs:attributeGroup name="xyz_site_nb">
|
||||||
|
<xs:attribute ref="x"/>
|
||||||
|
<xs:attribute ref="y"/>
|
||||||
|
<xs:attribute ref="z"/>
|
||||||
|
<xs:attribute ref="site"/>
|
||||||
|
<xs:attribute ref="weight"/>
|
||||||
|
</xs:attributeGroup>
|
||||||
|
|
||||||
|
<xs:element name="g_ref">
|
||||||
|
<xs:complexType>
|
||||||
|
<xs:simpleContent>
|
||||||
|
<xs:extension base="xs:string">
|
||||||
|
<xs:attributeGroup ref="id_date_author"/>
|
||||||
|
<xs:attribute ref="lang" use="required"/>
|
||||||
|
</xs:extension>
|
||||||
|
</xs:simpleContent>
|
||||||
|
</xs:complexType>
|
||||||
|
</xs:element>
|
||||||
|
|
||||||
|
<xs:element name="quote" substitutionGroup="g_ref"/>
|
||||||
|
|
||||||
|
<xs:element name="arrow">
|
||||||
|
<xs:complexType>
|
||||||
|
<xs:sequence>
|
||||||
|
<xs:element minOccurs="0" ref="quote"/>
|
||||||
|
</xs:sequence>
|
||||||
|
<xs:attributeGroup ref="xyz_site_nb"/>
|
||||||
|
</xs:complexType>
|
||||||
|
</xs:element>
|
||||||
|
|
||||||
|
<xs:element name="condition">
|
||||||
|
<xs:complexType>
|
||||||
|
<xs:sequence>
|
||||||
|
<xs:element minOccurs="0" ref="quote"/>
|
||||||
|
</xs:sequence>
|
||||||
|
<xs:attributeGroup ref="xyz_site_nb"/>
|
||||||
|
<xs:attribute ref="node_id" use="required"/>
|
||||||
|
<xs:attribute ref="parent" use="required"/>
|
||||||
|
</xs:complexType>
|
||||||
|
</xs:element>
|
||||||
|
|
||||||
|
<xs:element name="state">
|
||||||
|
<xs:complexType>
|
||||||
|
<xs:sequence minOccurs="1" maxOccurs="unbounded">
|
||||||
|
<xs:element ref="arrow"/>
|
||||||
|
</xs:sequence>
|
||||||
|
<xs:attributeGroup ref="id_date_author"/>
|
||||||
|
</xs:complexType>
|
||||||
|
</xs:element>
|
||||||
|
|
||||||
|
<xs:element name="object" substitutionGroup="state"/>
|
||||||
|
|
||||||
|
<xs:element name="space">
|
||||||
|
<xs:complexType>
|
||||||
|
<xs:sequence minOccurs="1" maxOccurs="unbounded">
|
||||||
|
<xs:element ref="arrow"/>
|
||||||
|
</xs:sequence>
|
||||||
|
<xs:attributeGroup ref="id_date_author"/>
|
||||||
|
<xs:attribute ref="sequence" use="required"/>
|
||||||
|
</xs:complexType>
|
||||||
|
</xs:element>
|
||||||
|
|
||||||
|
<xs:element name="transition">
|
||||||
|
<xs:complexType>
|
||||||
|
<xs:sequence minOccurs="1" maxOccurs="unbounded">
|
||||||
|
<xs:element minOccurs="0" ref="quote"/>
|
||||||
|
<xs:element ref="arrow"/>
|
||||||
|
</xs:sequence>
|
||||||
|
<xs:attributeGroup ref="id_date_author"/>
|
||||||
|
<xs:attribute ref="parent" use="required"/>
|
||||||
|
<xs:attribute ref="probability" use="required"/>
|
||||||
|
</xs:complexType>
|
||||||
|
</xs:element>
|
||||||
|
|
||||||
|
<xs:element name="gem-graph-model">
|
||||||
|
<xs:complexType>
|
||||||
|
<xs:sequence>
|
||||||
|
<xs:element name="identity">
|
||||||
|
<xs:complexType>
|
||||||
|
<xs:sequence>
|
||||||
|
<xs:element name="name" type="xs:string"/>
|
||||||
|
<xs:element name="owner" type="xs:string"/>
|
||||||
|
<xs:element name="owner_id" type="xs:integer"/>
|
||||||
|
<xs:element name="date" type="xs:integer"/>
|
||||||
|
<xs:element name="version" type="xs:float"/>
|
||||||
|
<xs:element minOccurs="0" ref="g_ref"/>
|
||||||
|
</xs:sequence>
|
||||||
|
</xs:complexType>
|
||||||
|
</xs:element>
|
||||||
|
|
||||||
|
<xs:element name="parameters">
|
||||||
|
<xs:complexType>
|
||||||
|
<xs:sequence>
|
||||||
|
|
||||||
|
<xs:element name="simulation">
|
||||||
|
<xs:complexType>
|
||||||
|
<xs:sequence>
|
||||||
|
|
||||||
|
<xs:element name="max_thread" type="xs:integer"/>
|
||||||
|
|
||||||
|
<xs:element name="max_cycles" type="xs:integer"/>
|
||||||
|
|
||||||
|
</xs:sequence>
|
||||||
|
</xs:complexType>
|
||||||
|
</xs:element>
|
||||||
|
|
||||||
|
<xs:element name="space-param">
|
||||||
|
<xs:complexType>
|
||||||
|
<xs:sequence>
|
||||||
|
|
||||||
|
<xs:element name="dimension" type="xs:integer"/>
|
||||||
|
|
||||||
|
<xs:element name="size">
|
||||||
|
<xs:complexType>
|
||||||
|
<xs:attributeGroup ref="xyz_site_nb"/>
|
||||||
|
</xs:complexType>
|
||||||
|
</xs:element>
|
||||||
|
|
||||||
|
<xs:element name="site_multiplicity" type="xs:integer"/>
|
||||||
|
|
||||||
|
</xs:sequence>
|
||||||
|
</xs:complexType>
|
||||||
|
</xs:element>
|
||||||
|
|
||||||
|
</xs:sequence>
|
||||||
|
<xs:attributeGroup ref="id_date_author"/>
|
||||||
|
</xs:complexType>
|
||||||
|
</xs:element>
|
||||||
|
|
||||||
|
<xs:element name="objects">
|
||||||
|
<xs:complexType>
|
||||||
|
<xs:sequence minOccurs="1" maxOccurs="unbounded">
|
||||||
|
<xs:element ref="state"/>
|
||||||
|
</xs:sequence>
|
||||||
|
<xs:attributeGroup ref="id_date_author"/>
|
||||||
|
</xs:complexType>
|
||||||
|
</xs:element>
|
||||||
|
|
||||||
|
<xs:element name="savestates">
|
||||||
|
<xs:complexType>
|
||||||
|
<xs:sequence minOccurs="0" maxOccurs="unbounded">
|
||||||
|
<xs:element ref="space"/>
|
||||||
|
</xs:sequence>
|
||||||
|
<xs:attributeGroup ref="id_date_author"/>
|
||||||
|
</xs:complexType>
|
||||||
|
</xs:element>
|
||||||
|
|
||||||
|
<xs:element name="conditions">
|
||||||
|
<xs:complexType>
|
||||||
|
<xs:sequence minOccurs="0" maxOccurs="unbounded">
|
||||||
|
<xs:element minOccurs="0" ref="quote"/>
|
||||||
|
<xs:element ref="condition"/>
|
||||||
|
</xs:sequence>
|
||||||
|
<xs:attributeGroup ref="id_date_author"/>
|
||||||
|
</xs:complexType>
|
||||||
|
</xs:element>
|
||||||
|
|
||||||
|
<xs:element name="transitions">
|
||||||
|
<xs:complexType>
|
||||||
|
<xs:sequence minOccurs="0" maxOccurs="unbounded">
|
||||||
|
<xs:element ref="transition"/>
|
||||||
|
</xs:sequence>
|
||||||
|
</xs:complexType>
|
||||||
|
</xs:element>
|
||||||
|
|
||||||
|
</xs:sequence>
|
||||||
|
<xs:attribute ref="version" use="required"/>
|
||||||
|
</xs:complexType>
|
||||||
|
</xs:element>
|
||||||
|
</xs:schema>
|
Loading…
Reference in New Issue