1 //
2 // This file was generated by the Eclipse Implementation of JAXB, v2.3.7
3 // See https://eclipse-ee4j.github.io/jaxb-ri
4 // Any modifications to this file will be lost upon recompilation of the source schema.
5 // Generated on: 2024.05.19 at 03:25:58 AM CEST
6 //
7
8
9 package org.opentrafficsim.xml.generated;
10
11 import java.io.Serializable;
12 import java.util.ArrayList;
13 import java.util.List;
14 import javax.annotation.Generated;
15 import javax.xml.bind.annotation.XmlAccessType;
16 import javax.xml.bind.annotation.XmlAccessorType;
17 import javax.xml.bind.annotation.XmlAttribute;
18 import javax.xml.bind.annotation.XmlElement;
19 import javax.xml.bind.annotation.XmlRootElement;
20 import javax.xml.bind.annotation.XmlType;
21 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
22 import org.opentrafficsim.xml.bindings.FrequencyAdapter;
23 import org.opentrafficsim.xml.bindings.LinearDensityAdapter;
24 import org.opentrafficsim.xml.bindings.StringAdapter;
25 import org.opentrafficsim.xml.bindings.types.FrequencyType;
26 import org.opentrafficsim.xml.bindings.types.LinearDensityType;
27 import org.opentrafficsim.xml.bindings.types.StringType;
28
29
30 /**
31 * <p>Java class for anonymous complex type.
32 *
33 * <p>The following schema fragment specifies the expected content contained within this class.
34 *
35 * <pre>
36 * <complexType>
37 * <complexContent>
38 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
39 * <sequence>
40 * <element name="From" type="{http://www.opentrafficsim.org/ots}string"/>
41 * <element name="Via" type="{http://www.opentrafficsim.org/ots}string" maxOccurs="unbounded" minOccurs="0"/>
42 * <element name="To" type="{http://www.opentrafficsim.org/ots}string"/>
43 * <element name="Cost" minOccurs="0">
44 * <complexType>
45 * <complexContent>
46 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
47 * <choice>
48 * <element name="Distance" type="{http://www.opentrafficsim.org/ots}EmptyType"/>
49 * <element name="FreeFlowTime" type="{http://www.opentrafficsim.org/ots}EmptyType"/>
50 * <element name="DistanceAndFreeFlowTime">
51 * <complexType>
52 * <complexContent>
53 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
54 * <attribute name="DistanceCost" type="{http://www.opentrafficsim.org/ots}LinearDensityType" />
55 * <attribute name="TimeCost" type="{http://www.opentrafficsim.org/ots}FrequencyType" />
56 * </restriction>
57 * </complexContent>
58 * </complexType>
59 * </element>
60 * </choice>
61 * </restriction>
62 * </complexContent>
63 * </complexType>
64 * </element>
65 * </sequence>
66 * <attribute name="Id" use="required" type="{http://www.opentrafficsim.org/ots}IdType" />
67 * <attribute name="GtuType" use="required" type="{http://www.opentrafficsim.org/ots}string" />
68 * </restriction>
69 * </complexContent>
70 * </complexType>
71 * </pre>
72 *
73 *
74 */
75 @XmlAccessorType(XmlAccessType.FIELD)
76 @XmlType(name = "", propOrder = {
77 "from",
78 "via",
79 "to",
80 "cost"
81 })
82 @XmlRootElement(name = "ShortestRoute")
83 @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
84 public class ShortestRoute
85 implements Serializable
86 {
87
88 @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
89 private final static long serialVersionUID = 10102L;
90 @XmlElement(name = "From", required = true, type = String.class)
91 @XmlJavaTypeAdapter(StringAdapter.class)
92 @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
93 protected StringType from;
94 @XmlElement(name = "Via", type = String.class)
95 @XmlJavaTypeAdapter(StringAdapter.class)
96 @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
97 protected List<StringType> via;
98 @XmlElement(name = "To", required = true, type = String.class)
99 @XmlJavaTypeAdapter(StringAdapter.class)
100 @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
101 protected StringType to;
102 @XmlElement(name = "Cost")
103 @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
104 protected ShortestRoute.Cost cost;
105 @XmlAttribute(name = "Id", required = true)
106 @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
107 protected String id;
108 @XmlAttribute(name = "GtuType", required = true)
109 @XmlJavaTypeAdapter(StringAdapter.class)
110 @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
111 protected StringType gtuType;
112
113 /**
114 * Gets the value of the from property.
115 *
116 * @return
117 * possible object is
118 * {@link String }
119 *
120 */
121 @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
122 public StringType getFrom() {
123 return from;
124 }
125
126 /**
127 * Sets the value of the from property.
128 *
129 * @param value
130 * allowed object is
131 * {@link String }
132 *
133 */
134 @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
135 public void setFrom(StringType value) {
136 this.from = value;
137 }
138
139 /**
140 * Gets the value of the via property.
141 *
142 * <p>
143 * This accessor method returns a reference to the live list,
144 * not a snapshot. Therefore any modification you make to the
145 * returned list will be present inside the JAXB object.
146 * This is why there is not a <CODE>set</CODE> method for the via property.
147 *
148 * <p>
149 * For example, to add a new item, do as follows:
150 * <pre>
151 * getVia().add(newItem);
152 * </pre>
153 *
154 *
155 * <p>
156 * Objects of the following type(s) are allowed in the list
157 * {@link String }
158 *
159 *
160 */
161 @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
162 public List<StringType> getVia() {
163 if (via == null) {
164 via = new ArrayList<StringType>();
165 }
166 return this.via;
167 }
168
169 /**
170 * Gets the value of the to property.
171 *
172 * @return
173 * possible object is
174 * {@link String }
175 *
176 */
177 @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
178 public StringType getTo() {
179 return to;
180 }
181
182 /**
183 * Sets the value of the to property.
184 *
185 * @param value
186 * allowed object is
187 * {@link String }
188 *
189 */
190 @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
191 public void setTo(StringType value) {
192 this.to = value;
193 }
194
195 /**
196 * Gets the value of the cost property.
197 *
198 * @return
199 * possible object is
200 * {@link ShortestRoute.Cost }
201 *
202 */
203 @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
204 public ShortestRoute.Cost getCost() {
205 return cost;
206 }
207
208 /**
209 * Sets the value of the cost property.
210 *
211 * @param value
212 * allowed object is
213 * {@link ShortestRoute.Cost }
214 *
215 */
216 @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
217 public void setCost(ShortestRoute.Cost value) {
218 this.cost = value;
219 }
220
221 /**
222 * Gets the value of the id property.
223 *
224 * @return
225 * possible object is
226 * {@link String }
227 *
228 */
229 @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
230 public String getId() {
231 return id;
232 }
233
234 /**
235 * Sets the value of the id property.
236 *
237 * @param value
238 * allowed object is
239 * {@link String }
240 *
241 */
242 @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
243 public void setId(String value) {
244 this.id = value;
245 }
246
247 /**
248 * Gets the value of the gtuType property.
249 *
250 * @return
251 * possible object is
252 * {@link String }
253 *
254 */
255 @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
256 public StringType getGtuType() {
257 return gtuType;
258 }
259
260 /**
261 * Sets the value of the gtuType property.
262 *
263 * @param value
264 * allowed object is
265 * {@link String }
266 *
267 */
268 @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
269 public void setGtuType(StringType value) {
270 this.gtuType = value;
271 }
272
273
274 /**
275 * <p>Java class for anonymous complex type.
276 *
277 * <p>The following schema fragment specifies the expected content contained within this class.
278 *
279 * <pre>
280 * <complexType>
281 * <complexContent>
282 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
283 * <choice>
284 * <element name="Distance" type="{http://www.opentrafficsim.org/ots}EmptyType"/>
285 * <element name="FreeFlowTime" type="{http://www.opentrafficsim.org/ots}EmptyType"/>
286 * <element name="DistanceAndFreeFlowTime">
287 * <complexType>
288 * <complexContent>
289 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
290 * <attribute name="DistanceCost" type="{http://www.opentrafficsim.org/ots}LinearDensityType" />
291 * <attribute name="TimeCost" type="{http://www.opentrafficsim.org/ots}FrequencyType" />
292 * </restriction>
293 * </complexContent>
294 * </complexType>
295 * </element>
296 * </choice>
297 * </restriction>
298 * </complexContent>
299 * </complexType>
300 * </pre>
301 *
302 *
303 */
304 @XmlAccessorType(XmlAccessType.FIELD)
305 @XmlType(name = "", propOrder = {
306 "distance",
307 "freeFlowTime",
308 "distanceAndFreeFlowTime"
309 })
310 @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
311 public static class Cost
312 implements Serializable
313 {
314
315 @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
316 private final static long serialVersionUID = 10102L;
317 @XmlElement(name = "Distance")
318 @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
319 protected EmptyType distance;
320 @XmlElement(name = "FreeFlowTime")
321 @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
322 protected EmptyType freeFlowTime;
323 @XmlElement(name = "DistanceAndFreeFlowTime")
324 @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
325 protected ShortestRoute.Cost.DistanceAndFreeFlowTime distanceAndFreeFlowTime;
326
327 /**
328 * Gets the value of the distance property.
329 *
330 * @return
331 * possible object is
332 * {@link EmptyType }
333 *
334 */
335 @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
336 public EmptyType getDistance() {
337 return distance;
338 }
339
340 /**
341 * Sets the value of the distance property.
342 *
343 * @param value
344 * allowed object is
345 * {@link EmptyType }
346 *
347 */
348 @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
349 public void setDistance(EmptyType value) {
350 this.distance = value;
351 }
352
353 /**
354 * Gets the value of the freeFlowTime property.
355 *
356 * @return
357 * possible object is
358 * {@link EmptyType }
359 *
360 */
361 @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
362 public EmptyType getFreeFlowTime() {
363 return freeFlowTime;
364 }
365
366 /**
367 * Sets the value of the freeFlowTime property.
368 *
369 * @param value
370 * allowed object is
371 * {@link EmptyType }
372 *
373 */
374 @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
375 public void setFreeFlowTime(EmptyType value) {
376 this.freeFlowTime = value;
377 }
378
379 /**
380 * Gets the value of the distanceAndFreeFlowTime property.
381 *
382 * @return
383 * possible object is
384 * {@link ShortestRoute.Cost.DistanceAndFreeFlowTime }
385 *
386 */
387 @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
388 public ShortestRoute.Cost.DistanceAndFreeFlowTime getDistanceAndFreeFlowTime() {
389 return distanceAndFreeFlowTime;
390 }
391
392 /**
393 * Sets the value of the distanceAndFreeFlowTime property.
394 *
395 * @param value
396 * allowed object is
397 * {@link ShortestRoute.Cost.DistanceAndFreeFlowTime }
398 *
399 */
400 @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
401 public void setDistanceAndFreeFlowTime(ShortestRoute.Cost.DistanceAndFreeFlowTime value) {
402 this.distanceAndFreeFlowTime = value;
403 }
404
405
406 /**
407 * <p>Java class for anonymous complex type.
408 *
409 * <p>The following schema fragment specifies the expected content contained within this class.
410 *
411 * <pre>
412 * <complexType>
413 * <complexContent>
414 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
415 * <attribute name="DistanceCost" type="{http://www.opentrafficsim.org/ots}LinearDensityType" />
416 * <attribute name="TimeCost" type="{http://www.opentrafficsim.org/ots}FrequencyType" />
417 * </restriction>
418 * </complexContent>
419 * </complexType>
420 * </pre>
421 *
422 *
423 */
424 @XmlAccessorType(XmlAccessType.FIELD)
425 @XmlType(name = "")
426 @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
427 public static class DistanceAndFreeFlowTime
428 implements Serializable
429 {
430
431 @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
432 private final static long serialVersionUID = 10102L;
433 @XmlAttribute(name = "DistanceCost")
434 @XmlJavaTypeAdapter(LinearDensityAdapter.class)
435 @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
436 protected LinearDensityType distanceCost;
437 @XmlAttribute(name = "TimeCost")
438 @XmlJavaTypeAdapter(FrequencyAdapter.class)
439 @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
440 protected FrequencyType timeCost;
441
442 /**
443 * Gets the value of the distanceCost property.
444 *
445 * @return
446 * possible object is
447 * {@link String }
448 *
449 */
450 @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
451 public LinearDensityType getDistanceCost() {
452 return distanceCost;
453 }
454
455 /**
456 * Sets the value of the distanceCost property.
457 *
458 * @param value
459 * allowed object is
460 * {@link String }
461 *
462 */
463 @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
464 public void setDistanceCost(LinearDensityType value) {
465 this.distanceCost = value;
466 }
467
468 /**
469 * Gets the value of the timeCost property.
470 *
471 * @return
472 * possible object is
473 * {@link String }
474 *
475 */
476 @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
477 public FrequencyType getTimeCost() {
478 return timeCost;
479 }
480
481 /**
482 * Sets the value of the timeCost property.
483 *
484 * @param value
485 * allowed object is
486 * {@link String }
487 *
488 */
489 @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
490 public void setTimeCost(FrequencyType value) {
491 this.timeCost = value;
492 }
493
494 }
495
496 }
497
498 }