forked from VDVde/TRIAS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTrias_Facilities.xsd
261 lines (261 loc) · 10.8 KB
/
Trias_Facilities.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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns="http://www.vdv.de/trias" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.vdv.de/trias" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:include schemaLocation="Trias_LocationSupport.xsd"/>
<xs:annotation>
<xs:documentation>====================================================Request definitions====================================================</xs:documentation>
</xs:annotation>
<xs:element name="FacilityRequest" type="FacilityRequestStructure">
<xs:annotation>
<xs:documentation>Request to retrieve current facility status information.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name="FacilityRequestStructure">
<xs:annotation>
<xs:documentation>Structure to retrieve current facility status information.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:group ref="FacilityDataFilterGroup"/>
<xs:element name="Extension" type="xs:anyType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="FacilityStructure">
<xs:annotation>
<xs:documentation>Structure of Facility and its Status</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:choice>
<xs:element ref="VehicleFacility"/>
<xs:element ref="InfrastructureFacility"/>
</xs:choice>
<xs:element name="Condition" type="FacilityStatusStructure">
<xs:annotation>
<xs:documentation>The current condition/status of the facility.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Extension" type="xs:anyType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:element name="FacilityStatusReport" type="FacilityStatusReportStructure">
<xs:annotation>
<xs:documentation>Report to update the status of a facility. Report the current status of a facility.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name="FacilityStatusReportStructure">
<xs:annotation>
<xs:documentation>Structure to report the status of a facility.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:choice>
<xs:element ref="VehicleFacility"/>
<xs:element ref="InfrastructureFacility"/>
</xs:choice>
<xs:element name="Condition" type="FacilityStatusStructure">
<xs:annotation>
<xs:documentation>The current condition/status of the facility.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Extension" type="xs:anyType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:element name="VehicleFacility" type="VehicleFacilityStructure">
<xs:annotation>
<xs:documentation>A vehicle facility.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name="VehicleFacilityStructure">
<xs:annotation>
<xs:documentation>Model of a vehicle facility.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:group ref="VehicleFacilityRefGroup"/>
<xs:group ref="ServiceFacilityGroup"/>
<xs:element name="FacilityDescription" type="InternationalTextStructure" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Name or text describing the facility.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="LocationDescription" type="InternationalTextStructure" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Description where the facility is located.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:element name="InfrastructureFacility" type="InfrastructureFacilityStructure">
<xs:annotation>
<xs:documentation>An infrastructure facility.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name="InfrastructureFacilityStructure">
<xs:annotation>
<xs:documentation>Model of a infrastructure facility.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:group ref="InfrastructureFacilityRefGroup"/>
<xs:group ref="StopFacilityGroup"/>
<xs:element name="FacilityDescription" type="InternationalTextStructure" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Name or text describing the facility.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Location" type="GeoPositionStructure" minOccurs="0">
<xs:annotation>
<xs:documentation>Coordinate position of the facility.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="LocationDescription" type="InternationalTextStructure" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Description where the facility is located.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="FacilityStatusTypeEnumeration">
<xs:annotation>
<xs:documentation>Possible status values.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="OK"/>
<xs:enumeration value="dirty"/>
<xs:enumeration value="destroyed"/>
<xs:enumeration value="damaged"/>
<xs:enumeration value="stolen"/>
<xs:enumeration value="out of order"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="FacilityAvailabilityEnumeration">
<xs:annotation>
<xs:documentation>Possible availability values.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="unknown"/>
<xs:enumeration value="available"/>
<xs:enumeration value="notAvailable"/>
<xs:enumeration value="partiallyAvailable"/>
<xs:enumeration value="added"/>
<xs:enumeration value="removed"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="FacilityStatusStructure">
<xs:annotation>
<xs:documentation>Status and description.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Availability" type="FacilityAvailabilityEnumeration">
<xs:annotation>
<xs:documentation>Availability value.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Status" type="FacilityStatusTypeEnumeration">
<xs:annotation>
<xs:documentation>Status value.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="StatusDescription" type="InternationalTextStructure" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Further description of the status.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:group name="VehicleFacilityRefGroup">
<xs:annotation>
<xs:documentation>Group to reference a vehicle facility.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element ref="FacilityRef" minOccurs="0"/>
<xs:element ref="OwnerRef" minOccurs="0"/>
<xs:element ref="OperatorRef" minOccurs="0"/>
<xs:element ref="LineRef" minOccurs="0"/>
<xs:element ref="JourneyRef" minOccurs="0"/>
<xs:element ref="VehicleRef" minOccurs="0"/>
</xs:sequence>
</xs:group>
<xs:group name="InfrastructureFacilityRefGroup">
<xs:annotation>
<xs:documentation>Group to reference a infrastructure facility.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element ref="FacilityRef" minOccurs="0"/>
<xs:element ref="OwnerRef" minOccurs="0"/>
<xs:element ref="StopPointRef" minOccurs="0"/>
<xs:element ref="StopPlaceRef" minOccurs="0"/>
<xs:element ref="OperatorRef" minOccurs="0"/>
<xs:element ref="LineRef" minOccurs="0"/>
</xs:sequence>
</xs:group>
<xs:group name="FacilityDataFilterGroup">
<xs:annotation>
<xs:documentation>Object references for selection of facilities.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element ref="FacilityRef" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="OwnerRef" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="StopPointRef" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="StopPlaceRef" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="OperatorRef" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="LineRef" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="JourneyRef" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="VehicleRef" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:group>
<xs:annotation>
<xs:documentation>====================================================Response definitions====================================================</xs:documentation>
</xs:annotation>
<xs:element name="FacilityStatusReportResponse" type="FacilityStatusReportResponseStructure">
<xs:annotation>
<xs:documentation>Response to FacilityStatusReport.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name="FacilityStatusReportResponseStructure">
<xs:annotation>
<xs:documentation>Response structure to FacilityStatusReport.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="ErrorMessage" type="ErrorMessageStructure">
<xs:annotation>
<xs:documentation>Message indicating whether the FacilityStatusReport could be processed.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:element name="FacilityResponse" type="FacilityResponseStructure">
<xs:annotation>
<xs:documentation>Response to FacilityRequest.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name="FacilityResponseStructure">
<xs:annotation>
<xs:documentation>Response structure.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="ErrorMessage" type="ErrorMessageStructure" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Error messages that refer to this facility.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="FacilityResult" type="FacilityResultStructure" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Possibly multiple facilities that match the query and their status.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="FacilityResultStructure">
<xs:annotation>
<xs:documentation>Result structure for a single facility status information element.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="ErrorMessage" type="ErrorMessageStructure" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Error messages that refer to this facility.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Facility" type="FacilityStructure">
<xs:annotation>
<xs:documentation>FacilityContent</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:schema>