Mise à jour du modèle XML version 0.2

This commit is contained in:
Adrien Bourmault 2021-11-11 15:22:42 +00:00
parent c5775b5e65
commit 221d95f4dc
2 changed files with 27 additions and 9 deletions

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<gem-graph-model version="0.2">
<!-- Model identity informations -->
<identity>
@ -24,8 +24,15 @@
</simulation>
<space-param>
<dimension>1</dimension>
<size x="29" y="0" z="0"/>
<dimension>
<!-- 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-->
<axis name="x" size="29"/>
<axis name="y" size="0"/>
<axis name="z" size="0"/>
</dimension>
<!-- Site_multiplicity = number of sites in a space unit. -->
<!-- Each site points towards a neighbouring space unit. -->
<!-- Several arrows can be stacked in the same site. -->
@ -111,3 +118,4 @@
</transitions>
</gem-graph-model>

View File

@ -48,6 +48,16 @@
<xs:element name="quote" substitutionGroup="g_ref"/>
<xs:element name="axis">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" ref="quote"/>
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="size" type="xs:integer" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="arrow">
<xs:complexType>
<xs:sequence>
@ -137,11 +147,11 @@
<xs:complexType>
<xs:sequence>
<xs:element name="dimension" type="xs:integer"/>
<xs:element name="size">
<xs:element name="dimension">
<xs:complexType>
<xs:attributeGroup ref="xyz_site_nb"/>
<xs:sequence minOccurs="1" maxOccurs="unbounded">
<xs:element ref="axis"/>
</xs:sequence>
</xs:complexType>
</xs:element>