aboutsummaryrefslogtreecommitdiffstats
path: root/Domains/crossingScenario/ecore-gen/crossingScenario/impl/VisionBlockedImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'Domains/crossingScenario/ecore-gen/crossingScenario/impl/VisionBlockedImpl.java')
-rw-r--r--Domains/crossingScenario/ecore-gen/crossingScenario/impl/VisionBlockedImpl.java316
1 files changed, 158 insertions, 158 deletions
diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/VisionBlockedImpl.java b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/VisionBlockedImpl.java
index 169cd57c..e5cb4004 100644
--- a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/VisionBlockedImpl.java
+++ b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/VisionBlockedImpl.java
@@ -1,158 +1,158 @@
1/** 1/**
2 */ 2 */
3package crossingScenario.impl; 3package crossingScenario.impl;
4 4
5import crossingScenario.Actor; 5import crossingScenario.Actor;
6import crossingScenario.CrossingScenarioPackage; 6import crossingScenario.CrossingScenarioPackage;
7import crossingScenario.VisionBlocked; 7import crossingScenario.VisionBlocked;
8 8
9import org.eclipse.emf.common.notify.Notification; 9import org.eclipse.emf.common.notify.Notification;
10 10
11import org.eclipse.emf.ecore.EClass; 11import org.eclipse.emf.ecore.EClass;
12import org.eclipse.emf.ecore.InternalEObject; 12import org.eclipse.emf.ecore.InternalEObject;
13 13
14import org.eclipse.emf.ecore.impl.ENotificationImpl; 14import org.eclipse.emf.ecore.impl.ENotificationImpl;
15 15
16/** 16/**
17 * <!-- begin-user-doc --> 17 * <!-- begin-user-doc -->
18 * An implementation of the model object '<em><b>Vision Blocked</b></em>'. 18 * An implementation of the model object '<em><b>Vision Blocked</b></em>'.
19 * <!-- end-user-doc --> 19 * <!-- end-user-doc -->
20 * <p> 20 * <p>
21 * The following features are implemented: 21 * The following features are implemented:
22 * </p> 22 * </p>
23 * <ul> 23 * <ul>
24 * <li>{@link crossingScenario.impl.VisionBlockedImpl#getBlockedBy <em>Blocked By</em>}</li> 24 * <li>{@link crossingScenario.impl.VisionBlockedImpl#getBlockedBy <em>Blocked By</em>}</li>
25 * </ul> 25 * </ul>
26 * 26 *
27 * @generated 27 * @generated
28 */ 28 */
29public class VisionBlockedImpl extends SpatialRelationImpl implements VisionBlocked { 29public class VisionBlockedImpl extends SpatialRelationImpl implements VisionBlocked {
30 /** 30 /**
31 * The cached value of the '{@link #getBlockedBy() <em>Blocked By</em>}' reference. 31 * The cached value of the '{@link #getBlockedBy() <em>Blocked By</em>}' reference.
32 * <!-- begin-user-doc --> 32 * <!-- begin-user-doc -->
33 * <!-- end-user-doc --> 33 * <!-- end-user-doc -->
34 * @see #getBlockedBy() 34 * @see #getBlockedBy()
35 * @generated 35 * @generated
36 * @ordered 36 * @ordered
37 */ 37 */
38 protected Actor blockedBy; 38 protected Actor blockedBy;
39 39
40 /** 40 /**
41 * <!-- begin-user-doc --> 41 * <!-- begin-user-doc -->
42 * <!-- end-user-doc --> 42 * <!-- end-user-doc -->
43 * @generated 43 * @generated
44 */ 44 */
45 protected VisionBlockedImpl() { 45 protected VisionBlockedImpl() {
46 super(); 46 super();
47 } 47 }
48 48
49 /** 49 /**
50 * <!-- begin-user-doc --> 50 * <!-- begin-user-doc -->
51 * <!-- end-user-doc --> 51 * <!-- end-user-doc -->
52 * @generated 52 * @generated
53 */ 53 */
54 @Override 54 @Override
55 protected EClass eStaticClass() { 55 protected EClass eStaticClass() {
56 return CrossingScenarioPackage.Literals.VISION_BLOCKED; 56 return CrossingScenarioPackage.Literals.VISION_BLOCKED;
57 } 57 }
58 58
59 /** 59 /**
60 * <!-- begin-user-doc --> 60 * <!-- begin-user-doc -->
61 * <!-- end-user-doc --> 61 * <!-- end-user-doc -->
62 * @generated 62 * @generated
63 */ 63 */
64 @Override 64 @Override
65 public Actor getBlockedBy() { 65 public Actor getBlockedBy() {
66 if (blockedBy != null && blockedBy.eIsProxy()) { 66 if (blockedBy != null && blockedBy.eIsProxy()) {
67 InternalEObject oldBlockedBy = (InternalEObject)blockedBy; 67 InternalEObject oldBlockedBy = (InternalEObject)blockedBy;
68 blockedBy = (Actor)eResolveProxy(oldBlockedBy); 68 blockedBy = (Actor)eResolveProxy(oldBlockedBy);
69 if (blockedBy != oldBlockedBy) { 69 if (blockedBy != oldBlockedBy) {
70 if (eNotificationRequired()) 70 if (eNotificationRequired())
71 eNotify(new ENotificationImpl(this, Notification.RESOLVE, CrossingScenarioPackage.VISION_BLOCKED__BLOCKED_BY, oldBlockedBy, blockedBy)); 71 eNotify(new ENotificationImpl(this, Notification.RESOLVE, CrossingScenarioPackage.VISION_BLOCKED__BLOCKED_BY, oldBlockedBy, blockedBy));
72 } 72 }
73 } 73 }
74 return blockedBy; 74 return blockedBy;
75 } 75 }
76 76
77 /** 77 /**
78 * <!-- begin-user-doc --> 78 * <!-- begin-user-doc -->
79 * <!-- end-user-doc --> 79 * <!-- end-user-doc -->
80 * @generated 80 * @generated
81 */ 81 */
82 public Actor basicGetBlockedBy() { 82 public Actor basicGetBlockedBy() {
83 return blockedBy; 83 return blockedBy;
84 } 84 }
85 85
86 /** 86 /**
87 * <!-- begin-user-doc --> 87 * <!-- begin-user-doc -->
88 * <!-- end-user-doc --> 88 * <!-- end-user-doc -->
89 * @generated 89 * @generated
90 */ 90 */
91 @Override 91 @Override
92 public void setBlockedBy(Actor newBlockedBy) { 92 public void setBlockedBy(Actor newBlockedBy) {
93 Actor oldBlockedBy = blockedBy; 93 Actor oldBlockedBy = blockedBy;
94 blockedBy = newBlockedBy; 94 blockedBy = newBlockedBy;
95 if (eNotificationRequired()) 95 if (eNotificationRequired())
96 eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.VISION_BLOCKED__BLOCKED_BY, oldBlockedBy, blockedBy)); 96 eNotify(new ENotificationImpl(this, Notification.SET, CrossingScenarioPackage.VISION_BLOCKED__BLOCKED_BY, oldBlockedBy, blockedBy));
97 } 97 }
98 98
99 /** 99 /**
100 * <!-- begin-user-doc --> 100 * <!-- begin-user-doc -->
101 * <!-- end-user-doc --> 101 * <!-- end-user-doc -->
102 * @generated 102 * @generated
103 */ 103 */
104 @Override 104 @Override
105 public Object eGet(int featureID, boolean resolve, boolean coreType) { 105 public Object eGet(int featureID, boolean resolve, boolean coreType) {
106 switch (featureID) { 106 switch (featureID) {
107 case CrossingScenarioPackage.VISION_BLOCKED__BLOCKED_BY: 107 case CrossingScenarioPackage.VISION_BLOCKED__BLOCKED_BY:
108 if (resolve) return getBlockedBy(); 108 if (resolve) return getBlockedBy();
109 return basicGetBlockedBy(); 109 return basicGetBlockedBy();
110 } 110 }
111 return super.eGet(featureID, resolve, coreType); 111 return super.eGet(featureID, resolve, coreType);
112 } 112 }
113 113
114 /** 114 /**
115 * <!-- begin-user-doc --> 115 * <!-- begin-user-doc -->
116 * <!-- end-user-doc --> 116 * <!-- end-user-doc -->
117 * @generated 117 * @generated
118 */ 118 */
119 @Override 119 @Override
120 public void eSet(int featureID, Object newValue) { 120 public void eSet(int featureID, Object newValue) {
121 switch (featureID) { 121 switch (featureID) {
122 case CrossingScenarioPackage.VISION_BLOCKED__BLOCKED_BY: 122 case CrossingScenarioPackage.VISION_BLOCKED__BLOCKED_BY:
123 setBlockedBy((Actor)newValue); 123 setBlockedBy((Actor)newValue);
124 return; 124 return;
125 } 125 }
126 super.eSet(featureID, newValue); 126 super.eSet(featureID, newValue);
127 } 127 }
128 128
129 /** 129 /**
130 * <!-- begin-user-doc --> 130 * <!-- begin-user-doc -->
131 * <!-- end-user-doc --> 131 * <!-- end-user-doc -->
132 * @generated 132 * @generated
133 */ 133 */
134 @Override 134 @Override
135 public void eUnset(int featureID) { 135 public void eUnset(int featureID) {
136 switch (featureID) { 136 switch (featureID) {
137 case CrossingScenarioPackage.VISION_BLOCKED__BLOCKED_BY: 137 case CrossingScenarioPackage.VISION_BLOCKED__BLOCKED_BY:
138 setBlockedBy((Actor)null); 138 setBlockedBy((Actor)null);
139 return; 139 return;
140 } 140 }
141 super.eUnset(featureID); 141 super.eUnset(featureID);
142 } 142 }
143 143
144 /** 144 /**
145 * <!-- begin-user-doc --> 145 * <!-- begin-user-doc -->
146 * <!-- end-user-doc --> 146 * <!-- end-user-doc -->
147 * @generated 147 * @generated
148 */ 148 */
149 @Override 149 @Override
150 public boolean eIsSet(int featureID) { 150 public boolean eIsSet(int featureID) {
151 switch (featureID) { 151 switch (featureID) {
152 case CrossingScenarioPackage.VISION_BLOCKED__BLOCKED_BY: 152 case CrossingScenarioPackage.VISION_BLOCKED__BLOCKED_BY:
153 return blockedBy != null; 153 return blockedBy != null;
154 } 154 }
155 return super.eIsSet(featureID); 155 return super.eIsSet(featureID);
156 } 156 }
157 157
158} //VisionBlockedImpl 158} //VisionBlockedImpl