-
Notifications
You must be signed in to change notification settings - Fork 2
/
bundle_model.xsd
157 lines (141 loc) · 12.8 KB
/
bundle_model.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<?xml version="1.0" encoding="utf-16"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="componentTypes">
<xs:complexType>
<xs:sequence>
<xs:element name="componentType" minOccurs="1" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="type" type="componentType"/>
<xs:element name="singleton" type="xs:boolean" minOccurs="1" maxOccurs="1"/>
<xs:element name="description" type="xs:string" minOccurs="0"/>
<xs:element name="ports" type="portsType" />
<xs:element name="events" minOccurs="0" type="eventsType" />
<xs:element name="properties" minOccurs="0" type="propertiesType" />
<xs:element name="gui" minOccurs="0" maxOccurs="1" type="guiType"/>
<!-- Sync
<xs:element name="bufferedPorts" minOccurs="0" maxOccurs="1" type="bufferedPortsType" />
-->
</xs:sequence>
<xs:attribute name="id" type="xs:string" use="required"/>
<xs:attribute name="canonical_name" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<!-- Start of Custom Types -->
<xs:complexType name="componentType">
<xs:simpleContent>
<xs:extension base="componentTypeDataTypes">
<xs:attribute name="subtype" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:simpleType name="componentTypeDataTypes">
<xs:restriction base="xs:string">
<xs:enumeration value="sensor"/>
<xs:enumeration value="processor"/>
<xs:enumeration value="actuator"/>
<xs:enumeration value="special"/>
<xs:enumeration value="group"/>
</xs:restriction>
</xs:simpleType>
<!-- portsType -->
<xs:complexType name="portsType">
<xs:choice minOccurs="1" maxOccurs="unbounded">
<xs:element name="inputPort" minOccurs="0" maxOccurs="unbounded" type="inputPortType" />
<xs:element name="outputPort" minOccurs="0" maxOccurs="unbounded" type="outputPortType" />
</xs:choice>
</xs:complexType>
<!-- inputPortType -->
<xs:complexType name="inputPortType">
<xs:sequence>
<xs:element name="description" default="Input port description" maxOccurs="1" type="xs:string"/>
<xs:element name="mustBeConnected" type="xs:boolean"/>
<xs:element name="dataType" type="dataType" />
<xs:element name="properties" minOccurs="0" type="inputPortTypePropertiesType" /> <!-- port-properties are never used - delete? -->
</xs:sequence>
<xs:attribute name="id" type="xs:string" use="required"/>
</xs:complexType>
<!-- outputPortType -->
<xs:complexType name="outputPortType">
<xs:sequence>
<xs:element name="description" default="Output port description" maxOccurs="1" type="xs:string"/>
<xs:element name="dataType" type="dataType" minOccurs="1" maxOccurs="1"/>
<xs:element name="properties" minOccurs="0" type="outputPortTypePropertiesType" /> <!-- port-properties are never used - delete? -->
</xs:sequence>
<xs:attribute name="id" type="xs:string" use="required"/>
</xs:complexType>
<!-- propertiesType -->
<xs:complexType name="propertiesType">
<xs:sequence>
<xs:element name="property" minOccurs="0" maxOccurs="unbounded" type="propertyType"/>
</xs:sequence>
</xs:complexType>
<!-- dataType -->
<xs:simpleType name="dataType">
<xs:restriction base="xs:string">
<xs:enumeration value="boolean"/>
<xs:enumeration value="byte"/>
<xs:enumeration value="char"/>
<xs:enumeration value="integer"/>
<xs:enumeration value="double"/>
<xs:enumeration value="string"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="propertyType">
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="type" type="dataType" use="required"/>
<xs:attribute name="description" default="Property description" type="xs:string"/>
<xs:attribute name="value" type="xs:string" use="required"/>
<xs:attribute name="combobox" type="xs:string"/>
<xs:attribute name="getStringList" type="xs:boolean"/>
</xs:complexType>
<xs:complexType name="guiType">
<xs:sequence>
<xs:element name="width" minOccurs="1" maxOccurs="1" type="xs:integer"/>
<xs:element name="height" minOccurs="1" maxOccurs="1" type="xs:integer"/>
</xs:sequence>
<xs:attribute name="IsExternalGUIElement" type="xs:boolean"/>
</xs:complexType>
<!-- Sync
<xs:complexType name="bufferedPortsType">
<xs:sequence>
<xs:element name="inputPortID" minOccurs="1" maxOccurs="unbounded" type="xs:string"/>
</xs:sequence>
</xs:complexType>
-->
<!-- eventsType -->
<xs:complexType name="eventsType">
<xs:choice minOccurs="1" maxOccurs="unbounded">
<xs:element name="eventListenerPort" minOccurs="0" maxOccurs="unbounded" type="eventsTypeEventListenerPortType" />
<xs:element name="eventTriggererPort" minOccurs="0" maxOccurs="unbounded" type="eventsTypeEventTriggererPortType" />
</xs:choice>
</xs:complexType>
<!-- End of Custom Types -->
<!-- Start of Custom SubTypes -->
<xs:complexType name="inputPortTypePropertiesType">
<xs:sequence>
<xs:element name="property" minOccurs="0" maxOccurs="unbounded" type="propertyType"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="outputPortTypePropertiesType">
<xs:sequence>
<xs:element name="property" minOccurs="0" maxOccurs="unbounded" type="propertyType"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="eventsTypeEventListenerPortType">
<xs:sequence>
<xs:element name="description" default="Event port listener description" maxOccurs="1" type="xs:string"/>
</xs:sequence>
<xs:attribute name="id" type="xs:string" use="required"/>
</xs:complexType>
<xs:complexType name="eventsTypeEventTriggererPortType">
<xs:sequence>
<xs:element name="description" default="Event port triggerer description" maxOccurs="1" type="xs:string"/>
</xs:sequence>
<xs:attribute name="id" type="xs:string" use="required"/>
</xs:complexType>
<!-- End of Custom Sub Types -->
</xs:schema>