1
2
3
4
5
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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
85
86
87
88
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
98
99
100
101
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
111
112
113
114
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
124
125
126
127
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
137
138
139
140
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
150
151
152
153
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
163
164
165
166
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
176
177
178
179
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
189
190
191
192
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
202
203
204
205
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
215
216
217
218
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
232
233
234
235
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 }