You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

openvibe-scenario-legacy.xsd 6.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Base scenario schema for OpenViBE XML scenario -->
  3. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
  4. <!-- Types definitions -->
  5. <!-- Identifier Type -->
  6. <xs:simpleType name="IdentifierType">
  7. <xs:restriction base="xs:string"/>
  8. </xs:simpleType>
  9. <!-- Name Type -->
  10. <xs:simpleType name="NameType">
  11. <xs:restriction base="xs:string"/>
  12. </xs:simpleType>
  13. <!-- ParameterType (settings value, attributes values) -->
  14. <xs:simpleType name="ParameterType">
  15. <xs:restriction base="xs:string"/>
  16. </xs:simpleType>
  17. <!-- Index Type -->
  18. <xs:simpleType name="IndexType">
  19. <xs:restriction base="xs:integer"/>
  20. </xs:simpleType>
  21. <!-- Scenario structure -->
  22. <!-- Root node -->
  23. <xs:element name="OpenViBE-Scenario">
  24. <xs:complexType>
  25. <xs:all>
  26. <xs:element minOccurs="0" name="Creator" type="xs:string"/>
  27. <xs:element minOccurs="0" name="CreatorVersion" type="xs:string"/>
  28. <xs:element minOccurs="0" ref="Boxes"/>
  29. <xs:element minOccurs="0" ref="Links"/>
  30. <xs:element minOccurs="0" ref="Comments"/>
  31. <xs:element minOccurs="0" ref="VisualisationTree"/>
  32. <xs:element minOccurs="0" ref="MessageLinks"/>
  33. <xs:element minOccurs="0" ref="Settings"/>
  34. <xs:element minOccurs="0" ref="Inputs"/>
  35. <xs:element minOccurs="0" ref="Outputs"/>
  36. <xs:element minOccurs="0" ref="Attributes"/>
  37. </xs:all>
  38. </xs:complexType>
  39. </xs:element>
  40. <!-- Boxes -->
  41. <xs:element name="Boxes">
  42. <xs:complexType>
  43. <xs:sequence>
  44. <xs:element minOccurs="0" maxOccurs="unbounded" ref="Box"/>
  45. </xs:sequence>
  46. </xs:complexType>
  47. </xs:element>
  48. <xs:element name="Box">
  49. <xs:complexType>
  50. <xs:all>
  51. <xs:element name="Identifier" type="IdentifierType"/>
  52. <xs:element name="Name" type="NameType"/>
  53. <xs:element name="AlgorithmClassIdentifier" type="IdentifierType"/>
  54. <xs:element minOccurs="0" ref="Settings"/>
  55. <xs:element minOccurs="0" ref="Inputs"/>
  56. <xs:element minOccurs="0" ref="Outputs"/>
  57. <xs:element minOccurs="0" ref="Attributes"/>
  58. </xs:all>
  59. </xs:complexType>
  60. </xs:element>
  61. <!-- Links -->
  62. <xs:element name="Links">
  63. <xs:complexType>
  64. <xs:sequence>
  65. <xs:element minOccurs="0" maxOccurs="unbounded" ref="Link"/>
  66. </xs:sequence>
  67. </xs:complexType>
  68. </xs:element>
  69. <xs:element name="Link">
  70. <xs:complexType>
  71. <xs:all>
  72. <xs:element name="Identifier" type="IdentifierType"/>
  73. <xs:element ref="Source"/>
  74. <xs:element ref="Target"/>
  75. <xs:element minOccurs="0" ref="Attributes"/>
  76. </xs:all>
  77. </xs:complexType>
  78. </xs:element>
  79. <xs:element name="Source">
  80. <xs:complexType>
  81. <xs:all>
  82. <xs:element name="BoxIdentifier" type="IdentifierType"/>
  83. <xs:element name="BoxOutputIndex" type="IndexType"/>
  84. </xs:all>
  85. </xs:complexType>
  86. </xs:element>
  87. <xs:element name="Target">
  88. <xs:complexType>
  89. <xs:all>
  90. <xs:element name="BoxIdentifier" type="IdentifierType"/>
  91. <xs:element name="BoxInputIndex" type="IndexType"/>
  92. </xs:all>
  93. </xs:complexType>
  94. </xs:element>
  95. <!-- Comments -->
  96. <xs:element name="Comments">
  97. <xs:complexType>
  98. <xs:sequence>
  99. <xs:element minOccurs="0" maxOccurs="unbounded" ref="Comment"/>
  100. </xs:sequence>
  101. </xs:complexType>
  102. </xs:element>
  103. <xs:element name="Comment">
  104. <xs:complexType>
  105. <xs:all>
  106. <xs:element name="Identifier" type="IdentifierType"/>
  107. <xs:element name="Text" type="xs:string"/>
  108. <xs:element minOccurs="0" ref="Attributes"/>
  109. </xs:all>
  110. </xs:complexType>
  111. </xs:element>
  112. <!-- Message Links -->
  113. <xs:element name="MessageLinks">
  114. <xs:complexType/>
  115. </xs:element>
  116. <!-- VisualisationTree -->
  117. <xs:element name="VisualisationTree">
  118. <xs:complexType>
  119. <xs:sequence>
  120. <xs:element minOccurs="0" maxOccurs="unbounded" ref="VisualisationWidget"/>
  121. </xs:sequence>
  122. </xs:complexType>
  123. </xs:element>
  124. <xs:element name="VisualisationWidget">
  125. <xs:complexType>
  126. <xs:sequence>
  127. <xs:element minOccurs="0" name="Identifier" type="IdentifierType"/>
  128. <xs:element minOccurs="0" name="Name" type="NameType"/>
  129. <xs:element minOccurs="0" name="Type" type="xs:integer"/>
  130. <xs:element minOccurs="0" name="ParentIdentifier" type="IdentifierType"/>
  131. <xs:element minOccurs="0" name="Index" type="IndexType"/>
  132. <xs:element minOccurs="0" name="BoxIdentifier" type="IdentifierType"/>
  133. <xs:element minOccurs="0" name="NumChildren" type="xs:integer"/>
  134. <xs:element minOccurs="0" ref="Attributes"/>
  135. </xs:sequence>
  136. </xs:complexType>
  137. </xs:element>
  138. <!-- Settings -->
  139. <xs:element name="Settings">
  140. <xs:complexType>
  141. <xs:sequence>
  142. <xs:element minOccurs="0" maxOccurs="unbounded" ref="Setting"/>
  143. </xs:sequence>
  144. </xs:complexType>
  145. </xs:element>
  146. <xs:element name="Setting">
  147. <xs:complexType>
  148. <xs:all>
  149. <xs:element name="TypeIdentifier" type="IdentifierType"/>
  150. <xs:element name="Name" type="NameType"/>
  151. <xs:element name="DefaultValue" type="ParameterType"/>
  152. <xs:element minOccurs="0" name="Value" type="ParameterType"/>
  153. <xs:element minOccurs="0" name="Modifiability" type="xs:boolean"/>
  154. </xs:all>
  155. </xs:complexType>
  156. </xs:element>
  157. <!-- Inputs -->
  158. <xs:element name="Inputs">
  159. <xs:complexType>
  160. <xs:sequence>
  161. <xs:element minOccurs="0" maxOccurs="unbounded" ref="Input"/>
  162. </xs:sequence>
  163. </xs:complexType>
  164. </xs:element>
  165. <xs:element name="Input">
  166. <xs:complexType>
  167. <xs:all>
  168. <xs:element name="TypeIdentifier" type="IdentifierType"/>
  169. <xs:element name="Name" type="NameType"/>
  170. <xs:element minOccurs="0" name="LinkedBoxIdentifier" type="IdentifierType"/>
  171. <xs:element minOccurs="0" name="LinkedBoxInputIndex" type="IndexType"/>
  172. </xs:all>
  173. </xs:complexType>
  174. </xs:element>
  175. <!-- Outputs -->
  176. <xs:element name="Outputs">
  177. <xs:complexType>
  178. <xs:sequence>
  179. <xs:element minOccurs="0" maxOccurs="unbounded" ref="Output"/>
  180. </xs:sequence>
  181. </xs:complexType>
  182. </xs:element>
  183. <xs:element name="Output">
  184. <xs:complexType>
  185. <xs:all>
  186. <xs:element name="TypeIdentifier" type="IdentifierType"/>
  187. <xs:element name="Name" type="NameType"/>
  188. <xs:element minOccurs="0" name="LinkedBoxIdentifier" type="IdentifierType"/>
  189. <xs:element minOccurs="0" name="LinkedBoxOutputIndex" type="IndexType"/>
  190. </xs:all>
  191. </xs:complexType>
  192. </xs:element>
  193. <!-- Attributes -->
  194. <xs:element name="Attributes">
  195. <xs:complexType>
  196. <xs:sequence>
  197. <xs:element minOccurs="0" maxOccurs="unbounded" ref="Attribute"/>
  198. </xs:sequence>
  199. </xs:complexType>
  200. </xs:element>
  201. <xs:element name="Attribute">
  202. <xs:complexType>
  203. <xs:all>
  204. <xs:element name="Identifier" type="IdentifierType"/>
  205. <xs:element name="Value" type="ParameterType"/>
  206. </xs:all>
  207. </xs:complexType>
  208. </xs:element>
  209. </xs:schema>