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