Commit 072f665c authored by Ulrich Kemloh's avatar Ulrich Kemloh

updating xsd definition to include sources, color_mode,...

parent d3867d70
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
</xs:element> </xs:element>
</xs:sequence> </xs:sequence>
<xs:attribute type="xs:int" name="id" use="required" /> <xs:attribute type="xs:int" name="id" use="required" />
<xs:attribute type="xs:int" name="closed" use="optional" /> <xs:attribute type="xs:string" name="caption" use="optional" />
<xs:attribute type="xs:float" name="A_x" use="optional" /> <xs:attribute type="xs:float" name="A_x" use="optional" />
<xs:attribute type="xs:float" name="B_y" use="optional" /> <xs:attribute type="xs:float" name="B_y" use="optional" />
<xs:attribute type="xs:float" name="C" use="optional" /> <xs:attribute type="xs:float" name="C" use="optional" />
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
</xs:element> </xs:element>
<xs:element type="xs:float" name="max_sim_time" minOccurs="0" maxOccurs="1" /> <xs:element type="xs:float" name="max_sim_time" minOccurs="0" maxOccurs="1" />
<xs:element type="xs:string" name="events_file" minOccurs="0" maxOccurs="1" /> <xs:element type="xs:string" name="events_file" minOccurs="0" maxOccurs="1" />
<xs:element type="xs:boolean" name="show_statistics" minOccurs="1" maxOccurs="1" />
<xs:element type="xs:string" name="geometry" minOccurs="1" maxOccurs="1"> <xs:element type="xs:string" name="geometry" minOccurs="1" maxOccurs="1">
<xs:annotation> <xs:annotation>
<xs:documentation>geometry file</xs:documentation> <xs:documentation>geometry file</xs:documentation>
...@@ -54,9 +55,32 @@ ...@@ -54,9 +55,32 @@
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
</xs:attribute> </xs:attribute>
<xs:attribute name="color_mode" use="optional">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="velocity" />
<xs:enumeration value="knowledge" />
<xs:enumeration value="group" />
<xs:enumeration value="router" />
<xs:enumeration value="spotlight" />
<xs:enumeration value="final_goal" />
<xs:enumeration value="intermediate_goal" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute type="xs:float" name="fps" use="required" /> <xs:attribute type="xs:float" name="fps" use="required" />
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>
<xs:element name="hybrid_simulation" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute type="xs:string" name="server" use="required" />
<xs:attribute type="xs:short" name="port" use="required" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element type="xs:string" name="logfile" minOccurs="0" maxOccurs="1"> <xs:element type="xs:string" name="logfile" minOccurs="0" maxOccurs="1">
<xs:annotation> <xs:annotation>
<xs:documentation>where to store the logs</xs:documentation> <xs:documentation>where to store the logs</xs:documentation>
...@@ -173,6 +197,25 @@ ...@@ -173,6 +197,25 @@
</xs:sequence> </xs:sequence>
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>
<xs:element name="agents_sources" maxOccurs="1" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="source" maxOccurs="unbounded" minOccurs="0">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute type="xs:int" name="id" use="required" />
<xs:attribute type="xs:float" name="frequency" use="required" />
<xs:attribute type="xs:int" name="agents_max" use="required" />
<xs:attribute type="xs:int" name="group_id" use="required" />
<xs:attribute type="xs:string" name="caption" use="required" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence> </xs:sequence>
<xs:attribute type="xs:int" name="operational_model_id" use="required" /> <xs:attribute type="xs:int" name="operational_model_id" use="required" />
</xs:complexType> </xs:complexType>
...@@ -418,6 +461,7 @@ ...@@ -418,6 +461,7 @@
<xs:restriction base="xs:float"> <xs:restriction base="xs:float">
<xs:enumeration value="0.5" /> <xs:enumeration value="0.5" />
<xs:enumeration value="0.6" /> <xs:enumeration value="0.6" />
<xs:enumeration value="0.7" />
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
</xs:attribute> </xs:attribute>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment