View Javadoc
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.08.29 at 06:50:16 PM 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.InterpolationAdapter;
23  import org.opentrafficsim.xml.bindings.PositiveFactorAdapter;
24  import org.opentrafficsim.xml.bindings.StringAdapter;
25  import org.opentrafficsim.xml.bindings.types.DoubleType;
26  import org.opentrafficsim.xml.bindings.types.InterpolationType;
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   * &lt;complexType&gt;
37   *   &lt;complexContent&gt;
38   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
39   *       &lt;sequence&gt;
40   *         &lt;element name="GlobalTime" type="{http://www.opentrafficsim.org/ots}GlobalTimeType" minOccurs="0"/&gt;
41   *         &lt;element name="Category" type="{http://www.opentrafficsim.org/ots}CategoryType" maxOccurs="unbounded" minOccurs="0"/&gt;
42   *         &lt;element name="Cell" maxOccurs="unbounded" minOccurs="0"&gt;
43   *           &lt;complexType&gt;
44   *             &lt;complexContent&gt;
45   *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
46   *                 &lt;sequence&gt;
47   *                   &lt;element name="Level" type="{http://www.opentrafficsim.org/ots}LevelTimeType" maxOccurs="unbounded" minOccurs="0"/&gt;
48   *                 &lt;/sequence&gt;
49   *                 &lt;attribute name="Origin" use="required" type="{http://www.opentrafficsim.org/ots}string" /&gt;
50   *                 &lt;attribute name="Destination" use="required" type="{http://www.opentrafficsim.org/ots}string" /&gt;
51   *                 &lt;attribute name="Category" type="{http://www.opentrafficsim.org/ots}string" /&gt;
52   *                 &lt;attribute name="Interpolation" type="{http://www.opentrafficsim.org/ots}InterpolationType" /&gt;
53   *                 &lt;attribute name="Factor" type="{http://www.opentrafficsim.org/ots}PositiveFactor" /&gt;
54   *               &lt;/restriction&gt;
55   *             &lt;/complexContent&gt;
56   *           &lt;/complexType&gt;
57   *         &lt;/element&gt;
58   *         &lt;element name="RandomStream" type="{http://www.opentrafficsim.org/ots}RandomStreamSource" minOccurs="0"/&gt;
59   *       &lt;/sequence&gt;
60   *       &lt;attribute name="Id" use="required" type="{http://www.opentrafficsim.org/ots}IdType" /&gt;
61   *       &lt;attribute name="SinkType" use="required" type="{http://www.opentrafficsim.org/ots}string" /&gt;
62   *       &lt;attribute name="GlobalInterpolation" type="{http://www.opentrafficsim.org/ots}InterpolationType" default="LINEAR" /&gt;
63   *       &lt;attribute name="GlobalFactor" type="{http://www.opentrafficsim.org/ots}PositiveFactor" default="1.0" /&gt;
64   *       &lt;attribute name="Options" type="{http://www.opentrafficsim.org/ots}string" /&gt;
65   *     &lt;/restriction&gt;
66   *   &lt;/complexContent&gt;
67   * &lt;/complexType&gt;
68   * </pre>
69   * 
70   * 
71   */
72  @XmlAccessorType(XmlAccessType.FIELD)
73  @XmlType(name = "", propOrder = {
74      "globalTime",
75      "category",
76      "cell",
77      "randomStream"
78  })
79  @XmlRootElement(name = "Od")
80  @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
81  public class Od
82      implements Serializable
83  {
84  
85      @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
86      private final static long serialVersionUID = 10102L;
87      @XmlElement(name = "GlobalTime")
88      @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
89      protected GlobalTimeType globalTime;
90      @XmlElement(name = "Category")
91      @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
92      protected List<CategoryType> category;
93      @XmlElement(name = "Cell")
94      @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
95      protected List<Od.Cell> cell;
96      @XmlElement(name = "RandomStream")
97      @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
98      protected RandomStreamSource randomStream;
99      @XmlAttribute(name = "Id", required = true)
100     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
101     protected String id;
102     @XmlAttribute(name = "SinkType", required = true)
103     @XmlJavaTypeAdapter(StringAdapter.class)
104     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
105     protected StringType sinkType;
106     @XmlAttribute(name = "GlobalInterpolation")
107     @XmlJavaTypeAdapter(InterpolationAdapter.class)
108     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
109     protected InterpolationType globalInterpolation;
110     @XmlAttribute(name = "GlobalFactor")
111     @XmlJavaTypeAdapter(PositiveFactorAdapter.class)
112     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
113     protected DoubleType globalFactor;
114     @XmlAttribute(name = "Options")
115     @XmlJavaTypeAdapter(StringAdapter.class)
116     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
117     protected StringType options;
118 
119     /**
120      * Gets the value of the globalTime property.
121      * 
122      * @return
123      *     possible object is
124      *     {@link GlobalTimeType }
125      *     
126      */
127     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
128     public GlobalTimeType getGlobalTime() {
129         return globalTime;
130     }
131 
132     /**
133      * Sets the value of the globalTime property.
134      * 
135      * @param value
136      *     allowed object is
137      *     {@link GlobalTimeType }
138      *     
139      */
140     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
141     public void setGlobalTime(GlobalTimeType value) {
142         this.globalTime = value;
143     }
144 
145     /**
146      * Gets the value of the category property.
147      * 
148      * <p>
149      * This accessor method returns a reference to the live list,
150      * not a snapshot. Therefore any modification you make to the
151      * returned list will be present inside the JAXB object.
152      * This is why there is not a <CODE>set</CODE> method for the category property.
153      * 
154      * <p>
155      * For example, to add a new item, do as follows:
156      * <pre>
157      *    getCategory().add(newItem);
158      * </pre>
159      * 
160      * 
161      * <p>
162      * Objects of the following type(s) are allowed in the list
163      * {@link CategoryType }
164      * 
165      * 
166      */
167     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
168     public List<CategoryType> getCategory() {
169         if (category == null) {
170             category = new ArrayList<CategoryType>();
171         }
172         return this.category;
173     }
174 
175     /**
176      * Gets the value of the cell property.
177      * 
178      * <p>
179      * This accessor method returns a reference to the live list,
180      * not a snapshot. Therefore any modification you make to the
181      * returned list will be present inside the JAXB object.
182      * This is why there is not a <CODE>set</CODE> method for the cell property.
183      * 
184      * <p>
185      * For example, to add a new item, do as follows:
186      * <pre>
187      *    getCell().add(newItem);
188      * </pre>
189      * 
190      * 
191      * <p>
192      * Objects of the following type(s) are allowed in the list
193      * {@link Od.Cell }
194      * 
195      * 
196      */
197     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
198     public List<Od.Cell> getCell() {
199         if (cell == null) {
200             cell = new ArrayList<Od.Cell>();
201         }
202         return this.cell;
203     }
204 
205     /**
206      * Gets the value of the randomStream property.
207      * 
208      * @return
209      *     possible object is
210      *     {@link RandomStreamSource }
211      *     
212      */
213     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
214     public RandomStreamSource getRandomStream() {
215         return randomStream;
216     }
217 
218     /**
219      * Sets the value of the randomStream property.
220      * 
221      * @param value
222      *     allowed object is
223      *     {@link RandomStreamSource }
224      *     
225      */
226     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
227     public void setRandomStream(RandomStreamSource value) {
228         this.randomStream = value;
229     }
230 
231     /**
232      * Gets the value of the id property.
233      * 
234      * @return
235      *     possible object is
236      *     {@link String }
237      *     
238      */
239     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
240     public String getId() {
241         return id;
242     }
243 
244     /**
245      * Sets the value of the id property.
246      * 
247      * @param value
248      *     allowed object is
249      *     {@link String }
250      *     
251      */
252     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
253     public void setId(String value) {
254         this.id = value;
255     }
256 
257     /**
258      * Gets the value of the sinkType property.
259      * 
260      * @return
261      *     possible object is
262      *     {@link String }
263      *     
264      */
265     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
266     public StringType getSinkType() {
267         return sinkType;
268     }
269 
270     /**
271      * Sets the value of the sinkType property.
272      * 
273      * @param value
274      *     allowed object is
275      *     {@link String }
276      *     
277      */
278     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
279     public void setSinkType(StringType value) {
280         this.sinkType = value;
281     }
282 
283     /**
284      * Gets the value of the globalInterpolation property.
285      * 
286      * @return
287      *     possible object is
288      *     {@link String }
289      *     
290      */
291     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
292     public InterpolationType getGlobalInterpolation() {
293         if (globalInterpolation == null) {
294             return new InterpolationAdapter().unmarshal("LINEAR");
295         } else {
296             return globalInterpolation;
297         }
298     }
299 
300     /**
301      * Sets the value of the globalInterpolation property.
302      * 
303      * @param value
304      *     allowed object is
305      *     {@link String }
306      *     
307      */
308     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
309     public void setGlobalInterpolation(InterpolationType value) {
310         this.globalInterpolation = value;
311     }
312 
313     /**
314      * Gets the value of the globalFactor property.
315      * 
316      * @return
317      *     possible object is
318      *     {@link String }
319      *     
320      */
321     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
322     public DoubleType getGlobalFactor() {
323         if (globalFactor == null) {
324             return new PositiveFactorAdapter().unmarshal("1.0");
325         } else {
326             return globalFactor;
327         }
328     }
329 
330     /**
331      * Sets the value of the globalFactor property.
332      * 
333      * @param value
334      *     allowed object is
335      *     {@link String }
336      *     
337      */
338     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
339     public void setGlobalFactor(DoubleType value) {
340         this.globalFactor = value;
341     }
342 
343     /**
344      * Gets the value of the options property.
345      * 
346      * @return
347      *     possible object is
348      *     {@link String }
349      *     
350      */
351     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
352     public StringType getOptions() {
353         return options;
354     }
355 
356     /**
357      * Sets the value of the options property.
358      * 
359      * @param value
360      *     allowed object is
361      *     {@link String }
362      *     
363      */
364     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
365     public void setOptions(StringType value) {
366         this.options = value;
367     }
368 
369 
370     /**
371      * <p>Java class for anonymous complex type.
372      * 
373      * <p>The following schema fragment specifies the expected content contained within this class.
374      * 
375      * <pre>
376      * &lt;complexType&gt;
377      *   &lt;complexContent&gt;
378      *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
379      *       &lt;sequence&gt;
380      *         &lt;element name="Level" type="{http://www.opentrafficsim.org/ots}LevelTimeType" maxOccurs="unbounded" minOccurs="0"/&gt;
381      *       &lt;/sequence&gt;
382      *       &lt;attribute name="Origin" use="required" type="{http://www.opentrafficsim.org/ots}string" /&gt;
383      *       &lt;attribute name="Destination" use="required" type="{http://www.opentrafficsim.org/ots}string" /&gt;
384      *       &lt;attribute name="Category" type="{http://www.opentrafficsim.org/ots}string" /&gt;
385      *       &lt;attribute name="Interpolation" type="{http://www.opentrafficsim.org/ots}InterpolationType" /&gt;
386      *       &lt;attribute name="Factor" type="{http://www.opentrafficsim.org/ots}PositiveFactor" /&gt;
387      *     &lt;/restriction&gt;
388      *   &lt;/complexContent&gt;
389      * &lt;/complexType&gt;
390      * </pre>
391      * 
392      * 
393      */
394     @XmlAccessorType(XmlAccessType.FIELD)
395     @XmlType(name = "", propOrder = {
396         "level"
397     })
398     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
399     public static class Cell
400         implements Serializable
401     {
402 
403         @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
404         private final static long serialVersionUID = 10102L;
405         @XmlElement(name = "Level")
406         @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
407         protected List<LevelTimeType> level;
408         @XmlAttribute(name = "Origin", required = true)
409         @XmlJavaTypeAdapter(StringAdapter.class)
410         @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
411         protected StringType origin;
412         @XmlAttribute(name = "Destination", required = true)
413         @XmlJavaTypeAdapter(StringAdapter.class)
414         @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
415         protected StringType destination;
416         @XmlAttribute(name = "Category")
417         @XmlJavaTypeAdapter(StringAdapter.class)
418         @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
419         protected StringType category;
420         @XmlAttribute(name = "Interpolation")
421         @XmlJavaTypeAdapter(InterpolationAdapter.class)
422         @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
423         protected InterpolationType interpolation;
424         @XmlAttribute(name = "Factor")
425         @XmlJavaTypeAdapter(PositiveFactorAdapter.class)
426         @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
427         protected DoubleType factor;
428 
429         /**
430          * Gets the value of the level property.
431          * 
432          * <p>
433          * This accessor method returns a reference to the live list,
434          * not a snapshot. Therefore any modification you make to the
435          * returned list will be present inside the JAXB object.
436          * This is why there is not a <CODE>set</CODE> method for the level property.
437          * 
438          * <p>
439          * For example, to add a new item, do as follows:
440          * <pre>
441          *    getLevel().add(newItem);
442          * </pre>
443          * 
444          * 
445          * <p>
446          * Objects of the following type(s) are allowed in the list
447          * {@link LevelTimeType }
448          * 
449          * 
450          */
451         @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
452         public List<LevelTimeType> getLevel() {
453             if (level == null) {
454                 level = new ArrayList<LevelTimeType>();
455             }
456             return this.level;
457         }
458 
459         /**
460          * Gets the value of the origin property.
461          * 
462          * @return
463          *     possible object is
464          *     {@link String }
465          *     
466          */
467         @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
468         public StringType getOrigin() {
469             return origin;
470         }
471 
472         /**
473          * Sets the value of the origin property.
474          * 
475          * @param value
476          *     allowed object is
477          *     {@link String }
478          *     
479          */
480         @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
481         public void setOrigin(StringType value) {
482             this.origin = value;
483         }
484 
485         /**
486          * Gets the value of the destination property.
487          * 
488          * @return
489          *     possible object is
490          *     {@link String }
491          *     
492          */
493         @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
494         public StringType getDestination() {
495             return destination;
496         }
497 
498         /**
499          * Sets the value of the destination property.
500          * 
501          * @param value
502          *     allowed object is
503          *     {@link String }
504          *     
505          */
506         @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
507         public void setDestination(StringType value) {
508             this.destination = value;
509         }
510 
511         /**
512          * Gets the value of the category property.
513          * 
514          * @return
515          *     possible object is
516          *     {@link String }
517          *     
518          */
519         @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
520         public StringType getCategory() {
521             return category;
522         }
523 
524         /**
525          * Sets the value of the category property.
526          * 
527          * @param value
528          *     allowed object is
529          *     {@link String }
530          *     
531          */
532         @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
533         public void setCategory(StringType value) {
534             this.category = value;
535         }
536 
537         /**
538          * Gets the value of the interpolation property.
539          * 
540          * @return
541          *     possible object is
542          *     {@link String }
543          *     
544          */
545         @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
546         public InterpolationType getInterpolation() {
547             return interpolation;
548         }
549 
550         /**
551          * Sets the value of the interpolation property.
552          * 
553          * @param value
554          *     allowed object is
555          *     {@link String }
556          *     
557          */
558         @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
559         public void setInterpolation(InterpolationType value) {
560             this.interpolation = value;
561         }
562 
563         /**
564          * Gets the value of the factor property.
565          * 
566          * @return
567          *     possible object is
568          *     {@link String }
569          *     
570          */
571         @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
572         public DoubleType getFactor() {
573             return factor;
574         }
575 
576         /**
577          * Sets the value of the factor property.
578          * 
579          * @param value
580          *     allowed object is
581          *     {@link String }
582          *     
583          */
584         @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
585         public void setFactor(DoubleType value) {
586             this.factor = value;
587         }
588 
589     }
590 
591 }