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.DoubleAdapter;
23  import org.opentrafficsim.xml.bindings.StringAdapter;
24  import org.opentrafficsim.xml.bindings.types.DoubleType;
25  import org.opentrafficsim.xml.bindings.types.StringType;
26  
27  
28  /**
29   * <p>Java class for anonymous complex type.
30   * 
31   * <p>The following schema fragment specifies the expected content contained within this class.
32   * 
33   * <pre>
34   * &lt;complexType&gt;
35   *   &lt;complexContent&gt;
36   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
37   *       &lt;sequence&gt;
38   *         &lt;element name="Route" maxOccurs="unbounded"&gt;
39   *           &lt;complexType&gt;
40   *             &lt;complexContent&gt;
41   *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
42   *                 &lt;attribute name="Id" use="required" type="{http://www.opentrafficsim.org/ots}string" /&gt;
43   *                 &lt;attribute name="Weight" use="required" type="{http://www.opentrafficsim.org/ots}double" /&gt;
44   *               &lt;/restriction&gt;
45   *             &lt;/complexContent&gt;
46   *           &lt;/complexType&gt;
47   *         &lt;/element&gt;
48   *         &lt;element name="RandomStream" type="{http://www.opentrafficsim.org/ots}RandomStreamSource" minOccurs="0"/&gt;
49   *       &lt;/sequence&gt;
50   *       &lt;attribute name="Id" use="required" type="{http://www.opentrafficsim.org/ots}IdType" /&gt;
51   *       &lt;attribute name="GtuType" use="required" type="{http://www.opentrafficsim.org/ots}string" /&gt;
52   *     &lt;/restriction&gt;
53   *   &lt;/complexContent&gt;
54   * &lt;/complexType&gt;
55   * </pre>
56   * 
57   * 
58   */
59  @XmlAccessorType(XmlAccessType.FIELD)
60  @XmlType(name = "", propOrder = {
61      "route",
62      "randomStream"
63  })
64  @XmlRootElement(name = "RouteMix")
65  @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
66  public class RouteMix
67      implements Serializable
68  {
69  
70      @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
71      private final static long serialVersionUID = 10102L;
72      @XmlElement(name = "Route", required = true)
73      @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
74      protected List<RouteMix.Route> route;
75      @XmlElement(name = "RandomStream")
76      @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
77      protected RandomStreamSource randomStream;
78      @XmlAttribute(name = "Id", required = true)
79      @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
80      protected String id;
81      @XmlAttribute(name = "GtuType", required = true)
82      @XmlJavaTypeAdapter(StringAdapter.class)
83      @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
84      protected StringType gtuType;
85  
86      /**
87       * Gets the value of the route property.
88       * 
89       * <p>
90       * This accessor method returns a reference to the live list,
91       * not a snapshot. Therefore any modification you make to the
92       * returned list will be present inside the JAXB object.
93       * This is why there is not a <CODE>set</CODE> method for the route property.
94       * 
95       * <p>
96       * For example, to add a new item, do as follows:
97       * <pre>
98       *    getRoute().add(newItem);
99       * </pre>
100      * 
101      * 
102      * <p>
103      * Objects of the following type(s) are allowed in the list
104      * {@link RouteMix.Route }
105      * 
106      * 
107      */
108     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
109     public List<RouteMix.Route> getRoute() {
110         if (route == null) {
111             route = new ArrayList<RouteMix.Route>();
112         }
113         return this.route;
114     }
115 
116     /**
117      * Gets the value of the randomStream property.
118      * 
119      * @return
120      *     possible object is
121      *     {@link RandomStreamSource }
122      *     
123      */
124     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
125     public RandomStreamSource getRandomStream() {
126         return randomStream;
127     }
128 
129     /**
130      * Sets the value of the randomStream property.
131      * 
132      * @param value
133      *     allowed object is
134      *     {@link RandomStreamSource }
135      *     
136      */
137     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
138     public void setRandomStream(RandomStreamSource value) {
139         this.randomStream = value;
140     }
141 
142     /**
143      * Gets the value of the id property.
144      * 
145      * @return
146      *     possible object is
147      *     {@link String }
148      *     
149      */
150     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
151     public String getId() {
152         return id;
153     }
154 
155     /**
156      * Sets the value of the id property.
157      * 
158      * @param value
159      *     allowed object is
160      *     {@link String }
161      *     
162      */
163     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
164     public void setId(String value) {
165         this.id = value;
166     }
167 
168     /**
169      * Gets the value of the gtuType property.
170      * 
171      * @return
172      *     possible object is
173      *     {@link String }
174      *     
175      */
176     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
177     public StringType getGtuType() {
178         return gtuType;
179     }
180 
181     /**
182      * Sets the value of the gtuType property.
183      * 
184      * @param value
185      *     allowed object is
186      *     {@link String }
187      *     
188      */
189     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
190     public void setGtuType(StringType value) {
191         this.gtuType = value;
192     }
193 
194 
195     /**
196      * <p>Java class for anonymous complex type.
197      * 
198      * <p>The following schema fragment specifies the expected content contained within this class.
199      * 
200      * <pre>
201      * &lt;complexType&gt;
202      *   &lt;complexContent&gt;
203      *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
204      *       &lt;attribute name="Id" use="required" type="{http://www.opentrafficsim.org/ots}string" /&gt;
205      *       &lt;attribute name="Weight" use="required" type="{http://www.opentrafficsim.org/ots}double" /&gt;
206      *     &lt;/restriction&gt;
207      *   &lt;/complexContent&gt;
208      * &lt;/complexType&gt;
209      * </pre>
210      * 
211      * 
212      */
213     @XmlAccessorType(XmlAccessType.FIELD)
214     @XmlType(name = "")
215     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
216     public static class Route
217         implements Serializable
218     {
219 
220         @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
221         private final static long serialVersionUID = 10102L;
222         @XmlAttribute(name = "Id", required = true)
223         @XmlJavaTypeAdapter(StringAdapter.class)
224         @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
225         protected StringType id;
226         @XmlAttribute(name = "Weight", required = true)
227         @XmlJavaTypeAdapter(DoubleAdapter.class)
228         @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
229         protected DoubleType weight;
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 StringType 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(StringType value) {
254             this.id = value;
255         }
256 
257         /**
258          * Gets the value of the weight 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 DoubleType getWeight() {
267             return weight;
268         }
269 
270         /**
271          * Sets the value of the weight 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 setWeight(DoubleType value) {
280             this.weight = value;
281         }
282 
283     }
284 
285 }