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 javax.annotation.Generated;
13  import javax.xml.bind.annotation.XmlAccessType;
14  import javax.xml.bind.annotation.XmlAccessorType;
15  import javax.xml.bind.annotation.XmlAttribute;
16  import javax.xml.bind.annotation.XmlRootElement;
17  import javax.xml.bind.annotation.XmlType;
18  import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
19  import org.opentrafficsim.xml.bindings.BooleanAdapter;
20  import org.opentrafficsim.xml.bindings.FractionAdapter;
21  import org.opentrafficsim.xml.bindings.StringAdapter;
22  import org.opentrafficsim.xml.bindings.types.BooleanType;
23  import org.opentrafficsim.xml.bindings.types.DoubleType;
24  import org.opentrafficsim.xml.bindings.types.StringType;
25  
26  
27  /**
28   * <p>Java class for anonymous complex type.
29   * 
30   * <p>The following schema fragment specifies the expected content contained within this class.
31   * 
32   * <pre>
33   * &lt;complexType&gt;
34   *   &lt;complexContent&gt;
35   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
36   *       &lt;attribute name="Id" use="required" type="{http://www.opentrafficsim.org/ots}IdType" /&gt;
37   *       &lt;attribute name="Type" use="required" type="{http://www.opentrafficsim.org/ots}string" /&gt;
38   *       &lt;attribute name="Centroid" use="required" type="{http://www.opentrafficsim.org/ots}string" /&gt;
39   *       &lt;attribute name="Node" use="required" type="{http://www.opentrafficsim.org/ots}string" /&gt;
40   *       &lt;attribute name="Outbound" use="required" type="{http://www.opentrafficsim.org/ots}boolean" /&gt;
41   *       &lt;attribute name="DemandWeight" type="{http://www.opentrafficsim.org/ots}FractionType" default="1.0" /&gt;
42   *     &lt;/restriction&gt;
43   *   &lt;/complexContent&gt;
44   * &lt;/complexType&gt;
45   * </pre>
46   * 
47   * 
48   */
49  @XmlAccessorType(XmlAccessType.FIELD)
50  @XmlType(name = "")
51  @XmlRootElement(name = "Connector")
52  @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
53  public class Connector
54      implements Serializable
55  {
56  
57      @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
58      private final static long serialVersionUID = 10102L;
59      @XmlAttribute(name = "Id", required = true)
60      @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
61      protected String id;
62      @XmlAttribute(name = "Type", required = true)
63      @XmlJavaTypeAdapter(StringAdapter.class)
64      @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
65      protected StringType type;
66      @XmlAttribute(name = "Centroid", required = true)
67      @XmlJavaTypeAdapter(StringAdapter.class)
68      @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
69      protected StringType centroid;
70      @XmlAttribute(name = "Node", required = true)
71      @XmlJavaTypeAdapter(StringAdapter.class)
72      @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
73      protected StringType node;
74      @XmlAttribute(name = "Outbound", required = true)
75      @XmlJavaTypeAdapter(BooleanAdapter.class)
76      @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
77      protected BooleanType outbound;
78      @XmlAttribute(name = "DemandWeight")
79      @XmlJavaTypeAdapter(FractionAdapter.class)
80      @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
81      protected DoubleType demandWeight;
82  
83      /**
84       * Gets the value of the id property.
85       * 
86       * @return
87       *     possible object is
88       *     {@link String }
89       *     
90       */
91      @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
92      public String getId() {
93          return id;
94      }
95  
96      /**
97       * Sets the value of the id property.
98       * 
99       * @param value
100      *     allowed object is
101      *     {@link String }
102      *     
103      */
104     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
105     public void setId(String value) {
106         this.id = value;
107     }
108 
109     /**
110      * Gets the value of the type property.
111      * 
112      * @return
113      *     possible object is
114      *     {@link String }
115      *     
116      */
117     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
118     public StringType getType() {
119         return type;
120     }
121 
122     /**
123      * Sets the value of the type property.
124      * 
125      * @param value
126      *     allowed object is
127      *     {@link String }
128      *     
129      */
130     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
131     public void setType(StringType value) {
132         this.type = value;
133     }
134 
135     /**
136      * Gets the value of the centroid property.
137      * 
138      * @return
139      *     possible object is
140      *     {@link String }
141      *     
142      */
143     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
144     public StringType getCentroid() {
145         return centroid;
146     }
147 
148     /**
149      * Sets the value of the centroid property.
150      * 
151      * @param value
152      *     allowed object is
153      *     {@link String }
154      *     
155      */
156     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
157     public void setCentroid(StringType value) {
158         this.centroid = value;
159     }
160 
161     /**
162      * Gets the value of the node property.
163      * 
164      * @return
165      *     possible object is
166      *     {@link String }
167      *     
168      */
169     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
170     public StringType getNode() {
171         return node;
172     }
173 
174     /**
175      * Sets the value of the node property.
176      * 
177      * @param value
178      *     allowed object is
179      *     {@link String }
180      *     
181      */
182     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
183     public void setNode(StringType value) {
184         this.node = value;
185     }
186 
187     /**
188      * Gets the value of the outbound property.
189      * 
190      * @return
191      *     possible object is
192      *     {@link String }
193      *     
194      */
195     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
196     public BooleanType getOutbound() {
197         return outbound;
198     }
199 
200     /**
201      * Sets the value of the outbound property.
202      * 
203      * @param value
204      *     allowed object is
205      *     {@link String }
206      *     
207      */
208     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
209     public void setOutbound(BooleanType value) {
210         this.outbound = value;
211     }
212 
213     /**
214      * Gets the value of the demandWeight property.
215      * 
216      * @return
217      *     possible object is
218      *     {@link String }
219      *     
220      */
221     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
222     public DoubleType getDemandWeight() {
223         if (demandWeight == null) {
224             return new FractionAdapter().unmarshal("1.0");
225         } else {
226             return demandWeight;
227         }
228     }
229 
230     /**
231      * Sets the value of the demandWeight property.
232      * 
233      * @param value
234      *     allowed object is
235      *     {@link String }
236      *     
237      */
238     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
239     public void setDemandWeight(DoubleType value) {
240         this.demandWeight = value;
241     }
242 
243 }