|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228 |
- <?xml version="1.0" encoding="UTF-8"?>
-
- <!-- Base scenario schema for OpenViBE XML scenario -->
- <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
-
- <!-- Types definitions -->
-
- <!-- Identifier Type -->
- <xs:simpleType name="IdentifierType">
- <xs:restriction base="xs:string"/>
- </xs:simpleType>
-
- <!-- Name Type -->
- <xs:simpleType name="NameType">
- <xs:restriction base="xs:string"/>
- </xs:simpleType>
-
- <!-- ParameterType (settings value, attributes values) -->
- <xs:simpleType name="ParameterType">
- <xs:restriction base="xs:string"/>
- </xs:simpleType>
-
- <!-- Index Type -->
- <xs:simpleType name="IndexType">
- <xs:restriction base="xs:integer"/>
- </xs:simpleType>
-
- <!-- Scenario structure -->
-
- <!-- Root node -->
- <xs:element name="OpenViBE-Scenario">
- <xs:complexType>
- <xs:all>
- <xs:element minOccurs="0" name="Creator" type="xs:string"/>
- <xs:element minOccurs="0" name="CreatorVersion" type="xs:string"/>
- <xs:element minOccurs="0" ref="Boxes"/>
- <xs:element minOccurs="0" ref="Links"/>
- <xs:element minOccurs="0" ref="Comments"/>
- <xs:element minOccurs="0" ref="VisualisationTree"/>
- <xs:element minOccurs="0" ref="MessageLinks"/>
- <xs:element minOccurs="0" ref="Settings"/>
- <xs:element minOccurs="0" ref="Inputs"/>
- <xs:element minOccurs="0" ref="Outputs"/>
- <xs:element minOccurs="0" ref="Attributes"/>
- </xs:all>
- </xs:complexType>
- </xs:element>
-
- <!-- Boxes -->
- <xs:element name="Boxes">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="unbounded" ref="Box"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="Box">
- <xs:complexType>
- <xs:all>
- <xs:element name="Identifier" type="IdentifierType"/>
- <xs:element name="Name" type="NameType"/>
- <xs:element name="AlgorithmClassIdentifier" type="IdentifierType"/>
- <xs:element minOccurs="0" ref="Settings"/>
- <xs:element minOccurs="0" ref="Inputs"/>
- <xs:element minOccurs="0" ref="Outputs"/>
- <xs:element minOccurs="0" ref="Attributes"/>
- </xs:all>
- </xs:complexType>
- </xs:element>
-
- <!-- Links -->
- <xs:element name="Links">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="unbounded" ref="Link"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="Link">
- <xs:complexType>
- <xs:all>
- <xs:element name="Identifier" type="IdentifierType"/>
- <xs:element ref="Source"/>
- <xs:element ref="Target"/>
- <xs:element minOccurs="0" ref="Attributes"/>
- </xs:all>
- </xs:complexType>
- </xs:element>
- <xs:element name="Source">
- <xs:complexType>
- <xs:all>
- <xs:element name="BoxIdentifier" type="IdentifierType"/>
- <xs:element name="BoxOutputIndex" type="IndexType"/>
- </xs:all>
- </xs:complexType>
- </xs:element>
- <xs:element name="Target">
- <xs:complexType>
- <xs:all>
- <xs:element name="BoxIdentifier" type="IdentifierType"/>
- <xs:element name="BoxInputIndex" type="IndexType"/>
- </xs:all>
- </xs:complexType>
- </xs:element>
-
- <!-- Comments -->
- <xs:element name="Comments">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="unbounded" ref="Comment"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="Comment">
- <xs:complexType>
- <xs:all>
- <xs:element name="Identifier" type="IdentifierType"/>
- <xs:element name="Text" type="xs:string"/>
- <xs:element minOccurs="0" ref="Attributes"/>
- </xs:all>
- </xs:complexType>
- </xs:element>
-
- <!-- Message Links -->
- <xs:element name="MessageLinks">
- <xs:complexType/>
- </xs:element>
-
- <!-- VisualisationTree -->
- <xs:element name="VisualisationTree">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="unbounded" ref="VisualisationWidget"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="VisualisationWidget">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="0" name="Identifier" type="IdentifierType"/>
- <xs:element minOccurs="0" name="Name" type="NameType"/>
- <xs:element minOccurs="0" name="Type" type="xs:integer"/>
- <xs:element minOccurs="0" name="ParentIdentifier" type="IdentifierType"/>
- <xs:element minOccurs="0" name="Index" type="IndexType"/>
- <xs:element minOccurs="0" name="BoxIdentifier" type="IdentifierType"/>
- <xs:element minOccurs="0" name="NumChildren" type="xs:integer"/>
- <xs:element minOccurs="0" ref="Attributes"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
-
- <!-- Settings -->
- <xs:element name="Settings">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="unbounded" ref="Setting"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="Setting">
- <xs:complexType>
- <xs:all>
- <xs:element name="TypeIdentifier" type="IdentifierType"/>
- <xs:element name="Name" type="NameType"/>
- <xs:element name="DefaultValue" type="ParameterType"/>
- <xs:element minOccurs="0" name="Value" type="ParameterType"/>
- <xs:element minOccurs="0" name="Modifiability" type="xs:boolean"/>
- </xs:all>
- </xs:complexType>
- </xs:element>
-
- <!-- Inputs -->
- <xs:element name="Inputs">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="unbounded" ref="Input"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="Input">
- <xs:complexType>
- <xs:all>
- <xs:element name="TypeIdentifier" type="IdentifierType"/>
- <xs:element name="Name" type="NameType"/>
- <xs:element minOccurs="0" name="LinkedBoxIdentifier" type="IdentifierType"/>
- <xs:element minOccurs="0" name="LinkedBoxInputIndex" type="IndexType"/>
- </xs:all>
- </xs:complexType>
- </xs:element>
-
- <!-- Outputs -->
- <xs:element name="Outputs">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="unbounded" ref="Output"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="Output">
- <xs:complexType>
- <xs:all>
- <xs:element name="TypeIdentifier" type="IdentifierType"/>
- <xs:element name="Name" type="NameType"/>
- <xs:element minOccurs="0" name="LinkedBoxIdentifier" type="IdentifierType"/>
- <xs:element minOccurs="0" name="LinkedBoxOutputIndex" type="IndexType"/>
- </xs:all>
- </xs:complexType>
- </xs:element>
-
- <!-- Attributes -->
- <xs:element name="Attributes">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="unbounded" ref="Attribute"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="Attribute">
- <xs:complexType>
- <xs:all>
- <xs:element name="Identifier" type="IdentifierType"/>
- <xs:element name="Value" type="ParameterType"/>
- </xs:all>
- </xs:complexType>
- </xs:element>
-
- </xs:schema>
-
|