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

View File

@ -48,6 +48,16 @@
<xs:element name="quote" substitutionGroup="g_ref"/> <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:element name="arrow">
<xs:complexType> <xs:complexType>
<xs:sequence> <xs:sequence>
@ -137,13 +147,13 @@
<xs:complexType> <xs:complexType>
<xs:sequence> <xs:sequence>
<xs:element name="dimension" type="xs:integer"/> <xs:element name="dimension">
<xs:complexType>
<xs:element name="size"> <xs:sequence minOccurs="1" maxOccurs="unbounded">
<xs:complexType> <xs:element ref="axis"/>
<xs:attributeGroup ref="xyz_site_nb"/> </xs:sequence>
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>
<xs:element name="site_multiplicity" type="xs:integer"/> <xs:element name="site_multiplicity" type="xs:integer"/>