WindowTypeImpl.java 23.8 KB
Newer Older
1
2
3
4
5
6
/**
 */
package de.hftstuttgart.buildingphysics.impl;

import de.hftstuttgart.buildingphysics.BuildingPhysicsPackage;
import de.hftstuttgart.buildingphysics.WindowType;
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
7

Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
8
import de.hftstuttgart.cityunits.model.NullableQuantity;
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
9

Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
10
11
import de.hftstuttgart.cityunits.model.quantities.QuantitiesFactory;
import de.hftstuttgart.cityunits.model.quantities.QuantitiesPackage;
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
12

13
import org.eclipse.emf.common.notify.Notification;
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
14

15
16
17
18
19
20
21
22
23
24
25
26
27
import org.eclipse.emf.ecore.EClass;

import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model object '<em><b>Window Type</b></em>'.
 * <!-- end-user-doc -->
 * <p>
 * The following features are implemented:
 * </p>
 * <ul>
28
 *   <li>{@link de.hftstuttgart.buildingphysics.impl.WindowTypeImpl#getWindowTypeId <em>Window Type Id</em>}</li>
29
30
31
32
33
 *   <li>{@link de.hftstuttgart.buildingphysics.impl.WindowTypeImpl#getName <em>Name</em>}</li>
 *   <li>{@link de.hftstuttgart.buildingphysics.impl.WindowTypeImpl#getUValue <em>UValue</em>}</li>
 *   <li>{@link de.hftstuttgart.buildingphysics.impl.WindowTypeImpl#getGValue <em>GValue</em>}</li>
 *   <li>{@link de.hftstuttgart.buildingphysics.impl.WindowTypeImpl#getGlazingNumber <em>Glazing Number</em>}</li>
 *   <li>{@link de.hftstuttgart.buildingphysics.impl.WindowTypeImpl#getFrameRatio <em>Frame Ratio</em>}</li>
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
34
35
36
37
38
39
 *   <li>{@link de.hftstuttgart.buildingphysics.impl.WindowTypeImpl#getEmbodiedEnergy <em>Embodied Energy</em>}</li>
 *   <li>{@link de.hftstuttgart.buildingphysics.impl.WindowTypeImpl#getEmbodiedCarbon <em>Embodied Carbon</em>}</li>
 *   <li>{@link de.hftstuttgart.buildingphysics.impl.WindowTypeImpl#getConstructionDescription <em>Construction Description</em>}</li>
 *   <li>{@link de.hftstuttgart.buildingphysics.impl.WindowTypeImpl#getDisposalEnergy <em>Disposal Energy</em>}</li>
 *   <li>{@link de.hftstuttgart.buildingphysics.impl.WindowTypeImpl#getDisposalCarbon <em>Disposal Carbon</em>}</li>
 *   <li>{@link de.hftstuttgart.buildingphysics.impl.WindowTypeImpl#getDisposalDescription <em>Disposal Description</em>}</li>
40
41
42
43
44
45
 * </ul>
 *
 * @generated
 */
public class WindowTypeImpl extends MinimalEObjectImpl.Container implements WindowType {
	/**
46
	 * The default value of the '{@link #getWindowTypeId() <em>Window Type Id</em>}' attribute.
47
48
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
49
	 * @see #getWindowTypeId()
50
51
52
	 * @generated
	 * @ordered
	 */
53
	protected static final String WINDOW_TYPE_ID_EDEFAULT = null;
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
54

55
	/**
56
	 * The cached value of the '{@link #getWindowTypeId() <em>Window Type Id</em>}' attribute.
57
58
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
59
	 * @see #getWindowTypeId()
60
61
62
	 * @generated
	 * @ordered
	 */
63
	protected String windowTypeId = WINDOW_TYPE_ID_EDEFAULT;
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
64

65
66
67
68
69
70
71
72
73
	/**
	 * The default value of the '{@link #getName() <em>Name</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getName()
	 * @generated
	 * @ordered
	 */
	protected static final String NAME_EDEFAULT = null;
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
74

75
76
77
78
79
80
81
82
83
	/**
	 * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getName()
	 * @generated
	 * @ordered
	 */
	protected String name = NAME_EDEFAULT;
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
84

85
86
87
88
89
90
91
92
	/**
	 * The default value of the '{@link #getUValue() <em>UValue</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getUValue()
	 * @generated
	 * @ordered
	 */
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
93
	protected static final NullableQuantity UVALUE_EDEFAULT = (NullableQuantity) QuantitiesFactory.eINSTANCE
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
94
			.createFromString(QuantitiesPackage.eINSTANCE.getQuantityDouble(), "W/(m\u00b2*K)");
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
95

96
97
98
99
100
101
102
103
	/**
	 * The cached value of the '{@link #getUValue() <em>UValue</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getUValue()
	 * @generated
	 * @ordered
	 */
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
104
	protected NullableQuantity uValue = UVALUE_EDEFAULT;
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
105

106
107
108
109
110
111
112
113
114
	/**
	 * The default value of the '{@link #getGValue() <em>GValue</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getGValue()
	 * @generated
	 * @ordered
	 */
	protected static final double GVALUE_EDEFAULT = 0.0;
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
115

116
117
118
119
120
121
122
123
124
	/**
	 * The cached value of the '{@link #getGValue() <em>GValue</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getGValue()
	 * @generated
	 * @ordered
	 */
	protected double gValue = GVALUE_EDEFAULT;
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
125

126
127
128
129
130
131
132
133
	/**
	 * The default value of the '{@link #getGlazingNumber() <em>Glazing Number</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getGlazingNumber()
	 * @generated
	 * @ordered
	 */
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
134
	protected static final int GLAZING_NUMBER_EDEFAULT = 1;
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
135

136
137
138
139
140
141
142
143
144
	/**
	 * The cached value of the '{@link #getGlazingNumber() <em>Glazing Number</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getGlazingNumber()
	 * @generated
	 * @ordered
	 */
	protected int glazingNumber = GLAZING_NUMBER_EDEFAULT;
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
145

146
147
148
149
150
151
152
153
	/**
	 * The default value of the '{@link #getFrameRatio() <em>Frame Ratio</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getFrameRatio()
	 * @generated
	 * @ordered
	 */
154
	protected static final Double FRAME_RATIO_EDEFAULT = null;
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
155

156
157
158
159
160
161
162
163
	/**
	 * The cached value of the '{@link #getFrameRatio() <em>Frame Ratio</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getFrameRatio()
	 * @generated
	 * @ordered
	 */
164
	protected Double frameRatio = FRAME_RATIO_EDEFAULT;
165

166
	/**
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
	 * The default value of the '{@link #getEmbodiedEnergy() <em>Embodied Energy</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getEmbodiedEnergy()
	 * @generated
	 * @ordered
	 */
	protected static final NullableQuantity EMBODIED_ENERGY_EDEFAULT = (NullableQuantity) QuantitiesFactory.eINSTANCE
			.createFromString(QuantitiesPackage.eINSTANCE.getQuantityDouble(), "kW*h/m\u00b2");

	/**
	 * The cached value of the '{@link #getEmbodiedEnergy() <em>Embodied Energy</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getEmbodiedEnergy()
	 * @generated
	 * @ordered
	 */
	protected NullableQuantity embodiedEnergy = EMBODIED_ENERGY_EDEFAULT;

	/**
	 * The default value of the '{@link #getEmbodiedCarbon() <em>Embodied Carbon</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getEmbodiedCarbon()
	 * @generated
	 * @ordered
	 */
	protected static final NullableQuantity EMBODIED_CARBON_EDEFAULT = (NullableQuantity) QuantitiesFactory.eINSTANCE
			.createFromString(QuantitiesPackage.eINSTANCE.getQuantityDouble(), "kg");

	/**
	 * The cached value of the '{@link #getEmbodiedCarbon() <em>Embodied Carbon</em>}' attribute.
200
201
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
202
	 * @see #getEmbodiedCarbon()
203
204
205
	 * @generated
	 * @ordered
	 */
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
	protected NullableQuantity embodiedCarbon = EMBODIED_CARBON_EDEFAULT;

	/**
	 * The default value of the '{@link #getConstructionDescription() <em>Construction Description</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getConstructionDescription()
	 * @generated
	 * @ordered
	 */
	protected static final String CONSTRUCTION_DESCRIPTION_EDEFAULT = null;

	/**
	 * The cached value of the '{@link #getConstructionDescription() <em>Construction Description</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getConstructionDescription()
	 * @generated
	 * @ordered
	 */
	protected String constructionDescription = CONSTRUCTION_DESCRIPTION_EDEFAULT;

	/**
	 * The default value of the '{@link #getDisposalEnergy() <em>Disposal Energy</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getDisposalEnergy()
	 * @generated
	 * @ordered
	 */
	protected static final NullableQuantity DISPOSAL_ENERGY_EDEFAULT = (NullableQuantity) QuantitiesFactory.eINSTANCE
			.createFromString(QuantitiesPackage.eINSTANCE.getQuantityDouble(), "kW*h/m\u00b2");

	/**
	 * The cached value of the '{@link #getDisposalEnergy() <em>Disposal Energy</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getDisposalEnergy()
	 * @generated
	 * @ordered
	 */
	protected NullableQuantity disposalEnergy = DISPOSAL_ENERGY_EDEFAULT;

	/**
	 * The default value of the '{@link #getDisposalCarbon() <em>Disposal Carbon</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getDisposalCarbon()
	 * @generated
	 * @ordered
	 */
	protected static final NullableQuantity DISPOSAL_CARBON_EDEFAULT = (NullableQuantity) QuantitiesFactory.eINSTANCE
			.createFromString(QuantitiesPackage.eINSTANCE.getQuantityDouble(), "kg");

	/**
	 * The cached value of the '{@link #getDisposalCarbon() <em>Disposal Carbon</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getDisposalCarbon()
	 * @generated
	 * @ordered
	 */
	protected NullableQuantity disposalCarbon = DISPOSAL_CARBON_EDEFAULT;

	/**
	 * The default value of the '{@link #getDisposalDescription() <em>Disposal Description</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getDisposalDescription()
	 * @generated
	 * @ordered
	 */
	protected static final String DISPOSAL_DESCRIPTION_EDEFAULT = null;

	/**
	 * The cached value of the '{@link #getDisposalDescription() <em>Disposal Description</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getDisposalDescription()
	 * @generated
	 * @ordered
	 */
	protected String disposalDescription = DISPOSAL_DESCRIPTION_EDEFAULT;
289

290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected WindowTypeImpl() {
		super();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	protected EClass eStaticClass() {
		return BuildingPhysicsPackage.Literals.WINDOW_TYPE;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
314
	@Override
315
316
	public String getWindowTypeId() {
		return windowTypeId;
317
318
319
320
321
322
323
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
324
	@Override
325
326
327
	public void setWindowTypeId(String newWindowTypeId) {
		String oldWindowTypeId = windowTypeId;
		windowTypeId = newWindowTypeId;
328
		if (eNotificationRequired())
329
330
			eNotify(new ENotificationImpl(this, Notification.SET, BuildingPhysicsPackage.WINDOW_TYPE__WINDOW_TYPE_ID,
					oldWindowTypeId, windowTypeId));
331
332
333
334
335
336
337
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
338
	@Override
339
340
341
342
343
344
345
346
347
	public String getName() {
		return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
348
	@Override
349
350
351
352
353
354
355
356
357
358
359
360
361
	public void setName(String newName) {
		String oldName = name;
		name = newName;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, BuildingPhysicsPackage.WINDOW_TYPE__NAME, oldName,
					name));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
362
	@Override
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
363
	public NullableQuantity getUValue() {
364
365
366
367
368
369
370
371
		return uValue;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
372
	@Override
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
373
374
	public void setUValue(NullableQuantity newUValue) {
		NullableQuantity oldUValue = uValue;
375
376
377
378
379
380
381
382
383
384
385
		uValue = newUValue;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, BuildingPhysicsPackage.WINDOW_TYPE__UVALUE, oldUValue,
					uValue));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
386
	@Override
387
388
389
390
391
392
393
394
395
	public double getGValue() {
		return gValue;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
396
	@Override
397
398
399
400
401
402
403
404
405
406
407
408
409
	public void setGValue(double newGValue) {
		double oldGValue = gValue;
		gValue = newGValue;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, BuildingPhysicsPackage.WINDOW_TYPE__GVALUE, oldGValue,
					gValue));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
410
	@Override
411
412
413
414
415
416
417
418
419
	public int getGlazingNumber() {
		return glazingNumber;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
420
	@Override
421
422
423
424
425
426
427
428
429
430
431
432
433
	public void setGlazingNumber(int newGlazingNumber) {
		int oldGlazingNumber = glazingNumber;
		glazingNumber = newGlazingNumber;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, BuildingPhysicsPackage.WINDOW_TYPE__GLAZING_NUMBER,
					oldGlazingNumber, glazingNumber));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
434
	@Override
435
	public Double getFrameRatio() {
436
437
438
439
440
441
442
443
		return frameRatio;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
444
	@Override
445
446
	public void setFrameRatio(Double newFrameRatio) {
		Double oldFrameRatio = frameRatio;
447
448
449
450
451
452
		frameRatio = newFrameRatio;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, BuildingPhysicsPackage.WINDOW_TYPE__FRAME_RATIO,
					oldFrameRatio, frameRatio));
	}

453
454
455
456
457
458
	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
459
460
	public NullableQuantity getEmbodiedEnergy() {
		return embodiedEnergy;
461
462
463
464
465
466
467
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
468
469
470
471
472
473
474
	@Override
	public void setEmbodiedEnergy(NullableQuantity newEmbodiedEnergy) {
		NullableQuantity oldEmbodiedEnergy = embodiedEnergy;
		embodiedEnergy = newEmbodiedEnergy;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, BuildingPhysicsPackage.WINDOW_TYPE__EMBODIED_ENERGY,
					oldEmbodiedEnergy, embodiedEnergy));
475
476
477
478
479
480
481
482
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
483
484
	public NullableQuantity getEmbodiedCarbon() {
		return embodiedCarbon;
485
486
487
488
489
490
491
492
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
	public void setEmbodiedCarbon(NullableQuantity newEmbodiedCarbon) {
		NullableQuantity oldEmbodiedCarbon = embodiedCarbon;
		embodiedCarbon = newEmbodiedCarbon;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, BuildingPhysicsPackage.WINDOW_TYPE__EMBODIED_CARBON,
					oldEmbodiedCarbon, embodiedCarbon));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String getConstructionDescription() {
		return constructionDescription;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public void setConstructionDescription(String newConstructionDescription) {
		String oldConstructionDescription = constructionDescription;
		constructionDescription = newConstructionDescription;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET,
					BuildingPhysicsPackage.WINDOW_TYPE__CONSTRUCTION_DESCRIPTION, oldConstructionDescription,
					constructionDescription));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public NullableQuantity getDisposalEnergy() {
		return disposalEnergy;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public void setDisposalEnergy(NullableQuantity newDisposalEnergy) {
		NullableQuantity oldDisposalEnergy = disposalEnergy;
		disposalEnergy = newDisposalEnergy;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, BuildingPhysicsPackage.WINDOW_TYPE__DISPOSAL_ENERGY,
					oldDisposalEnergy, disposalEnergy));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public NullableQuantity getDisposalCarbon() {
		return disposalCarbon;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public void setDisposalCarbon(NullableQuantity newDisposalCarbon) {
		NullableQuantity oldDisposalCarbon = disposalCarbon;
		disposalCarbon = newDisposalCarbon;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, BuildingPhysicsPackage.WINDOW_TYPE__DISPOSAL_CARBON,
					oldDisposalCarbon, disposalCarbon));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String getDisposalDescription() {
		return disposalDescription;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public void setDisposalDescription(String newDisposalDescription) {
		String oldDisposalDescription = disposalDescription;
		disposalDescription = newDisposalDescription;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET,
					BuildingPhysicsPackage.WINDOW_TYPE__DISPOSAL_DESCRIPTION, oldDisposalDescription,
					disposalDescription));
597
598
	}

599
600
601
602
603
604
605
606
	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Object eGet(int featureID, boolean resolve, boolean coreType) {
		switch (featureID) {
607
608
		case BuildingPhysicsPackage.WINDOW_TYPE__WINDOW_TYPE_ID:
			return getWindowTypeId();
609
610
611
612
613
614
615
616
617
618
		case BuildingPhysicsPackage.WINDOW_TYPE__NAME:
			return getName();
		case BuildingPhysicsPackage.WINDOW_TYPE__UVALUE:
			return getUValue();
		case BuildingPhysicsPackage.WINDOW_TYPE__GVALUE:
			return getGValue();
		case BuildingPhysicsPackage.WINDOW_TYPE__GLAZING_NUMBER:
			return getGlazingNumber();
		case BuildingPhysicsPackage.WINDOW_TYPE__FRAME_RATIO:
			return getFrameRatio();
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
619
620
621
622
623
624
625
626
627
628
629
630
		case BuildingPhysicsPackage.WINDOW_TYPE__EMBODIED_ENERGY:
			return getEmbodiedEnergy();
		case BuildingPhysicsPackage.WINDOW_TYPE__EMBODIED_CARBON:
			return getEmbodiedCarbon();
		case BuildingPhysicsPackage.WINDOW_TYPE__CONSTRUCTION_DESCRIPTION:
			return getConstructionDescription();
		case BuildingPhysicsPackage.WINDOW_TYPE__DISPOSAL_ENERGY:
			return getDisposalEnergy();
		case BuildingPhysicsPackage.WINDOW_TYPE__DISPOSAL_CARBON:
			return getDisposalCarbon();
		case BuildingPhysicsPackage.WINDOW_TYPE__DISPOSAL_DESCRIPTION:
			return getDisposalDescription();
631
632
633
634
635
636
637
638
639
640
641
642
		}
		return super.eGet(featureID, resolve, coreType);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public void eSet(int featureID, Object newValue) {
		switch (featureID) {
643
644
		case BuildingPhysicsPackage.WINDOW_TYPE__WINDOW_TYPE_ID:
			setWindowTypeId((String) newValue);
645
646
647
648
649
			return;
		case BuildingPhysicsPackage.WINDOW_TYPE__NAME:
			setName((String) newValue);
			return;
		case BuildingPhysicsPackage.WINDOW_TYPE__UVALUE:
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
650
			setUValue((NullableQuantity) newValue);
651
652
653
654
655
656
657
658
			return;
		case BuildingPhysicsPackage.WINDOW_TYPE__GVALUE:
			setGValue((Double) newValue);
			return;
		case BuildingPhysicsPackage.WINDOW_TYPE__GLAZING_NUMBER:
			setGlazingNumber((Integer) newValue);
			return;
		case BuildingPhysicsPackage.WINDOW_TYPE__FRAME_RATIO:
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
659
			setFrameRatio((Double) newValue);
660
			return;
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
		case BuildingPhysicsPackage.WINDOW_TYPE__EMBODIED_ENERGY:
			setEmbodiedEnergy((NullableQuantity) newValue);
			return;
		case BuildingPhysicsPackage.WINDOW_TYPE__EMBODIED_CARBON:
			setEmbodiedCarbon((NullableQuantity) newValue);
			return;
		case BuildingPhysicsPackage.WINDOW_TYPE__CONSTRUCTION_DESCRIPTION:
			setConstructionDescription((String) newValue);
			return;
		case BuildingPhysicsPackage.WINDOW_TYPE__DISPOSAL_ENERGY:
			setDisposalEnergy((NullableQuantity) newValue);
			return;
		case BuildingPhysicsPackage.WINDOW_TYPE__DISPOSAL_CARBON:
			setDisposalCarbon((NullableQuantity) newValue);
			return;
		case BuildingPhysicsPackage.WINDOW_TYPE__DISPOSAL_DESCRIPTION:
			setDisposalDescription((String) newValue);
678
			return;
679
680
681
682
683
684
685
686
687
688
689
690
		}
		super.eSet(featureID, newValue);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public void eUnset(int featureID) {
		switch (featureID) {
691
692
		case BuildingPhysicsPackage.WINDOW_TYPE__WINDOW_TYPE_ID:
			setWindowTypeId(WINDOW_TYPE_ID_EDEFAULT);
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
			return;
		case BuildingPhysicsPackage.WINDOW_TYPE__NAME:
			setName(NAME_EDEFAULT);
			return;
		case BuildingPhysicsPackage.WINDOW_TYPE__UVALUE:
			setUValue(UVALUE_EDEFAULT);
			return;
		case BuildingPhysicsPackage.WINDOW_TYPE__GVALUE:
			setGValue(GVALUE_EDEFAULT);
			return;
		case BuildingPhysicsPackage.WINDOW_TYPE__GLAZING_NUMBER:
			setGlazingNumber(GLAZING_NUMBER_EDEFAULT);
			return;
		case BuildingPhysicsPackage.WINDOW_TYPE__FRAME_RATIO:
			setFrameRatio(FRAME_RATIO_EDEFAULT);
			return;
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
		case BuildingPhysicsPackage.WINDOW_TYPE__EMBODIED_ENERGY:
			setEmbodiedEnergy(EMBODIED_ENERGY_EDEFAULT);
			return;
		case BuildingPhysicsPackage.WINDOW_TYPE__EMBODIED_CARBON:
			setEmbodiedCarbon(EMBODIED_CARBON_EDEFAULT);
			return;
		case BuildingPhysicsPackage.WINDOW_TYPE__CONSTRUCTION_DESCRIPTION:
			setConstructionDescription(CONSTRUCTION_DESCRIPTION_EDEFAULT);
			return;
		case BuildingPhysicsPackage.WINDOW_TYPE__DISPOSAL_ENERGY:
			setDisposalEnergy(DISPOSAL_ENERGY_EDEFAULT);
			return;
		case BuildingPhysicsPackage.WINDOW_TYPE__DISPOSAL_CARBON:
			setDisposalCarbon(DISPOSAL_CARBON_EDEFAULT);
			return;
		case BuildingPhysicsPackage.WINDOW_TYPE__DISPOSAL_DESCRIPTION:
			setDisposalDescription(DISPOSAL_DESCRIPTION_EDEFAULT);
726
			return;
727
728
729
730
731
732
733
734
735
736
737
738
		}
		super.eUnset(featureID);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public boolean eIsSet(int featureID) {
		switch (featureID) {
739
740
741
		case BuildingPhysicsPackage.WINDOW_TYPE__WINDOW_TYPE_ID:
			return WINDOW_TYPE_ID_EDEFAULT == null ? windowTypeId != null
					: !WINDOW_TYPE_ID_EDEFAULT.equals(windowTypeId);
742
743
744
		case BuildingPhysicsPackage.WINDOW_TYPE__NAME:
			return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
		case BuildingPhysicsPackage.WINDOW_TYPE__UVALUE:
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
745
			return UVALUE_EDEFAULT == null ? uValue != null : !UVALUE_EDEFAULT.equals(uValue);
746
747
748
749
750
		case BuildingPhysicsPackage.WINDOW_TYPE__GVALUE:
			return gValue != GVALUE_EDEFAULT;
		case BuildingPhysicsPackage.WINDOW_TYPE__GLAZING_NUMBER:
			return glazingNumber != GLAZING_NUMBER_EDEFAULT;
		case BuildingPhysicsPackage.WINDOW_TYPE__FRAME_RATIO:
751
			return FRAME_RATIO_EDEFAULT == null ? frameRatio != null : !FRAME_RATIO_EDEFAULT.equals(frameRatio);
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
		case BuildingPhysicsPackage.WINDOW_TYPE__EMBODIED_ENERGY:
			return EMBODIED_ENERGY_EDEFAULT == null ? embodiedEnergy != null
					: !EMBODIED_ENERGY_EDEFAULT.equals(embodiedEnergy);
		case BuildingPhysicsPackage.WINDOW_TYPE__EMBODIED_CARBON:
			return EMBODIED_CARBON_EDEFAULT == null ? embodiedCarbon != null
					: !EMBODIED_CARBON_EDEFAULT.equals(embodiedCarbon);
		case BuildingPhysicsPackage.WINDOW_TYPE__CONSTRUCTION_DESCRIPTION:
			return CONSTRUCTION_DESCRIPTION_EDEFAULT == null ? constructionDescription != null
					: !CONSTRUCTION_DESCRIPTION_EDEFAULT.equals(constructionDescription);
		case BuildingPhysicsPackage.WINDOW_TYPE__DISPOSAL_ENERGY:
			return DISPOSAL_ENERGY_EDEFAULT == null ? disposalEnergy != null
					: !DISPOSAL_ENERGY_EDEFAULT.equals(disposalEnergy);
		case BuildingPhysicsPackage.WINDOW_TYPE__DISPOSAL_CARBON:
			return DISPOSAL_CARBON_EDEFAULT == null ? disposalCarbon != null
					: !DISPOSAL_CARBON_EDEFAULT.equals(disposalCarbon);
		case BuildingPhysicsPackage.WINDOW_TYPE__DISPOSAL_DESCRIPTION:
			return DISPOSAL_DESCRIPTION_EDEFAULT == null ? disposalDescription != null
					: !DISPOSAL_DESCRIPTION_EDEFAULT.equals(disposalDescription);
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
		}
		return super.eIsSet(featureID);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		if (eIsProxy())
			return super.toString();

		StringBuilder result = new StringBuilder(super.toString());
785
786
		result.append(" (windowTypeId: ");
		result.append(windowTypeId);
787
788
789
790
791
792
793
794
795
796
		result.append(", name: ");
		result.append(name);
		result.append(", uValue: ");
		result.append(uValue);
		result.append(", gValue: ");
		result.append(gValue);
		result.append(", glazingNumber: ");
		result.append(glazingNumber);
		result.append(", frameRatio: ");
		result.append(frameRatio);
Kai-Holger Brassel's avatar
Kai-Holger Brassel committed
797
798
799
800
801
802
803
804
805
806
807
808
		result.append(", embodiedEnergy: ");
		result.append(embodiedEnergy);
		result.append(", embodiedCarbon: ");
		result.append(embodiedCarbon);
		result.append(", constructionDescription: ");
		result.append(constructionDescription);
		result.append(", disposalEnergy: ");
		result.append(disposalEnergy);
		result.append(", disposalCarbon: ");
		result.append(disposalCarbon);
		result.append(", disposalDescription: ");
		result.append(disposalDescription);
809
810
811
812
813
		result.append(')');
		return result.toString();
	}

} //WindowTypeImpl