diff options
Diffstat (limited to 'Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl')
5 files changed, 127 insertions, 382 deletions
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommSubsystemImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommSubsystemImpl.java index cae35a0c..cdfbd6de 100644 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommSubsystemImpl.java +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommSubsystemImpl.java | |||
@@ -2,7 +2,10 @@ | |||
2 | */ | 2 | */ |
3 | package satellite.impl; | 3 | package satellite.impl; |
4 | 4 | ||
5 | import org.eclipse.emf.common.notify.Notification; | ||
5 | import org.eclipse.emf.ecore.EClass; | 6 | import org.eclipse.emf.ecore.EClass; |
7 | import org.eclipse.emf.ecore.InternalEObject; | ||
8 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
6 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | 9 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; |
7 | import satellite.CommSubsystem; | 10 | import satellite.CommSubsystem; |
8 | import satellite.SatellitePackage; | 11 | import satellite.SatellitePackage; |
@@ -11,11 +14,27 @@ import satellite.SatellitePackage; | |||
11 | * <!-- begin-user-doc --> | 14 | * <!-- begin-user-doc --> |
12 | * An implementation of the model object '<em><b>Comm Subsystem</b></em>'. | 15 | * An implementation of the model object '<em><b>Comm Subsystem</b></em>'. |
13 | * <!-- end-user-doc --> | 16 | * <!-- end-user-doc --> |
17 | * <p> | ||
18 | * The following features are implemented: | ||
19 | * </p> | ||
20 | * <ul> | ||
21 | * <li>{@link satellite.impl.CommSubsystemImpl#getTarget <em>Target</em>}</li> | ||
22 | * </ul> | ||
14 | * | 23 | * |
15 | * @generated | 24 | * @generated |
16 | */ | 25 | */ |
17 | public abstract class CommSubsystemImpl extends MinimalEObjectImpl.Container implements CommSubsystem { | 26 | public abstract class CommSubsystemImpl extends MinimalEObjectImpl.Container implements CommSubsystem { |
18 | /** | 27 | /** |
28 | * The cached value of the '{@link #getTarget() <em>Target</em>}' reference. | ||
29 | * <!-- begin-user-doc --> | ||
30 | * <!-- end-user-doc --> | ||
31 | * @see #getTarget() | ||
32 | * @generated | ||
33 | * @ordered | ||
34 | */ | ||
35 | protected CommSubsystem target; | ||
36 | |||
37 | /** | ||
19 | * <!-- begin-user-doc --> | 38 | * <!-- begin-user-doc --> |
20 | * <!-- end-user-doc --> | 39 | * <!-- end-user-doc --> |
21 | * @generated | 40 | * @generated |
@@ -34,4 +53,106 @@ public abstract class CommSubsystemImpl extends MinimalEObjectImpl.Container imp | |||
34 | return SatellitePackage.Literals.COMM_SUBSYSTEM; | 53 | return SatellitePackage.Literals.COMM_SUBSYSTEM; |
35 | } | 54 | } |
36 | 55 | ||
56 | /** | ||
57 | * <!-- begin-user-doc --> | ||
58 | * <!-- end-user-doc --> | ||
59 | * @generated | ||
60 | */ | ||
61 | @Override | ||
62 | public CommSubsystem getTarget() { | ||
63 | if (target != null && target.eIsProxy()) { | ||
64 | InternalEObject oldTarget = (InternalEObject) target; | ||
65 | target = (CommSubsystem) eResolveProxy(oldTarget); | ||
66 | if (target != oldTarget) { | ||
67 | if (eNotificationRequired()) | ||
68 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, SatellitePackage.COMM_SUBSYSTEM__TARGET, | ||
69 | oldTarget, target)); | ||
70 | } | ||
71 | } | ||
72 | return target; | ||
73 | } | ||
74 | |||
75 | /** | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @generated | ||
79 | */ | ||
80 | public CommSubsystem basicGetTarget() { | ||
81 | return target; | ||
82 | } | ||
83 | |||
84 | /** | ||
85 | * <!-- begin-user-doc --> | ||
86 | * <!-- end-user-doc --> | ||
87 | * @generated | ||
88 | */ | ||
89 | @Override | ||
90 | public void setTarget(CommSubsystem newTarget) { | ||
91 | CommSubsystem oldTarget = target; | ||
92 | target = newTarget; | ||
93 | if (eNotificationRequired()) | ||
94 | eNotify(new ENotificationImpl(this, Notification.SET, SatellitePackage.COMM_SUBSYSTEM__TARGET, oldTarget, | ||
95 | target)); | ||
96 | } | ||
97 | |||
98 | /** | ||
99 | * <!-- begin-user-doc --> | ||
100 | * <!-- end-user-doc --> | ||
101 | * @generated | ||
102 | */ | ||
103 | @Override | ||
104 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
105 | switch (featureID) { | ||
106 | case SatellitePackage.COMM_SUBSYSTEM__TARGET: | ||
107 | if (resolve) | ||
108 | return getTarget(); | ||
109 | return basicGetTarget(); | ||
110 | } | ||
111 | return super.eGet(featureID, resolve, coreType); | ||
112 | } | ||
113 | |||
114 | /** | ||
115 | * <!-- begin-user-doc --> | ||
116 | * <!-- end-user-doc --> | ||
117 | * @generated | ||
118 | */ | ||
119 | @Override | ||
120 | public void eSet(int featureID, Object newValue) { | ||
121 | switch (featureID) { | ||
122 | case SatellitePackage.COMM_SUBSYSTEM__TARGET: | ||
123 | setTarget((CommSubsystem) newValue); | ||
124 | return; | ||
125 | } | ||
126 | super.eSet(featureID, newValue); | ||
127 | } | ||
128 | |||
129 | /** | ||
130 | * <!-- begin-user-doc --> | ||
131 | * <!-- end-user-doc --> | ||
132 | * @generated | ||
133 | */ | ||
134 | @Override | ||
135 | public void eUnset(int featureID) { | ||
136 | switch (featureID) { | ||
137 | case SatellitePackage.COMM_SUBSYSTEM__TARGET: | ||
138 | setTarget((CommSubsystem) null); | ||
139 | return; | ||
140 | } | ||
141 | super.eUnset(featureID); | ||
142 | } | ||
143 | |||
144 | /** | ||
145 | * <!-- begin-user-doc --> | ||
146 | * <!-- end-user-doc --> | ||
147 | * @generated | ||
148 | */ | ||
149 | @Override | ||
150 | public boolean eIsSet(int featureID) { | ||
151 | switch (featureID) { | ||
152 | case SatellitePackage.COMM_SUBSYSTEM__TARGET: | ||
153 | return target != null; | ||
154 | } | ||
155 | return super.eIsSet(featureID); | ||
156 | } | ||
157 | |||
37 | } //CommSubsystemImpl | 158 | } //CommSubsystemImpl |
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommunicatingElementImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommunicatingElementImpl.java index 1f79da3b..d44547d3 100644 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommunicatingElementImpl.java +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommunicatingElementImpl.java | |||
@@ -3,16 +3,12 @@ | |||
3 | package satellite.impl; | 3 | package satellite.impl; |
4 | 4 | ||
5 | import java.util.Collection; | 5 | import java.util.Collection; |
6 | |||
7 | import org.eclipse.emf.common.notify.Notification; | ||
8 | import org.eclipse.emf.common.notify.NotificationChain; | 6 | import org.eclipse.emf.common.notify.NotificationChain; |
9 | 7 | ||
10 | import org.eclipse.emf.common.util.EList; | 8 | import org.eclipse.emf.common.util.EList; |
11 | 9 | ||
12 | import org.eclipse.emf.ecore.EClass; | 10 | import org.eclipse.emf.ecore.EClass; |
13 | import org.eclipse.emf.ecore.InternalEObject; | 11 | import org.eclipse.emf.ecore.InternalEObject; |
14 | |||
15 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
16 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | 12 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; |
17 | 13 | ||
18 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | 14 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; |
@@ -20,7 +16,6 @@ import org.eclipse.emf.ecore.util.InternalEList; | |||
20 | 16 | ||
21 | import satellite.CommSubsystem; | 17 | import satellite.CommSubsystem; |
22 | import satellite.CommunicatingElement; | 18 | import satellite.CommunicatingElement; |
23 | import satellite.DirectedCommunicationLink; | ||
24 | import satellite.SatellitePackage; | 19 | import satellite.SatellitePackage; |
25 | 20 | ||
26 | /** | 21 | /** |
@@ -32,7 +27,6 @@ import satellite.SatellitePackage; | |||
32 | * </p> | 27 | * </p> |
33 | * <ul> | 28 | * <ul> |
34 | * <li>{@link satellite.impl.CommunicatingElementImpl#getCommSubsystem <em>Comm Subsystem</em>}</li> | 29 | * <li>{@link satellite.impl.CommunicatingElementImpl#getCommSubsystem <em>Comm Subsystem</em>}</li> |
35 | * <li>{@link satellite.impl.CommunicatingElementImpl#getCommunicationLink <em>Communication Link</em>}</li> | ||
36 | * </ul> | 30 | * </ul> |
37 | * | 31 | * |
38 | * @generated | 32 | * @generated |
@@ -49,16 +43,6 @@ public abstract class CommunicatingElementImpl extends MinimalEObjectImpl.Contai | |||
49 | protected EList<CommSubsystem> commSubsystem; | 43 | protected EList<CommSubsystem> commSubsystem; |
50 | 44 | ||
51 | /** | 45 | /** |
52 | * The cached value of the '{@link #getCommunicationLink() <em>Communication Link</em>}' containment reference. | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @see #getCommunicationLink() | ||
56 | * @generated | ||
57 | * @ordered | ||
58 | */ | ||
59 | protected DirectedCommunicationLink communicationLink; | ||
60 | |||
61 | /** | ||
62 | * <!-- begin-user-doc --> | 46 | * <!-- begin-user-doc --> |
63 | * <!-- end-user-doc --> | 47 | * <!-- end-user-doc --> |
64 | * @generated | 48 | * @generated |
@@ -97,69 +81,10 @@ public abstract class CommunicatingElementImpl extends MinimalEObjectImpl.Contai | |||
97 | * @generated | 81 | * @generated |
98 | */ | 82 | */ |
99 | @Override | 83 | @Override |
100 | public DirectedCommunicationLink getCommunicationLink() { | ||
101 | return communicationLink; | ||
102 | } | ||
103 | |||
104 | /** | ||
105 | * <!-- begin-user-doc --> | ||
106 | * <!-- end-user-doc --> | ||
107 | * @generated | ||
108 | */ | ||
109 | public NotificationChain basicSetCommunicationLink(DirectedCommunicationLink newCommunicationLink, | ||
110 | NotificationChain msgs) { | ||
111 | DirectedCommunicationLink oldCommunicationLink = communicationLink; | ||
112 | communicationLink = newCommunicationLink; | ||
113 | if (eNotificationRequired()) { | ||
114 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, | ||
115 | SatellitePackage.COMMUNICATING_ELEMENT__COMMUNICATION_LINK, oldCommunicationLink, | ||
116 | newCommunicationLink); | ||
117 | if (msgs == null) | ||
118 | msgs = notification; | ||
119 | else | ||
120 | msgs.add(notification); | ||
121 | } | ||
122 | return msgs; | ||
123 | } | ||
124 | |||
125 | /** | ||
126 | * <!-- begin-user-doc --> | ||
127 | * <!-- end-user-doc --> | ||
128 | * @generated | ||
129 | */ | ||
130 | @Override | ||
131 | public void setCommunicationLink(DirectedCommunicationLink newCommunicationLink) { | ||
132 | if (newCommunicationLink != communicationLink) { | ||
133 | NotificationChain msgs = null; | ||
134 | if (communicationLink != null) | ||
135 | msgs = ((InternalEObject) communicationLink).eInverseRemove(this, | ||
136 | EOPPOSITE_FEATURE_BASE - SatellitePackage.COMMUNICATING_ELEMENT__COMMUNICATION_LINK, null, | ||
137 | msgs); | ||
138 | if (newCommunicationLink != null) | ||
139 | msgs = ((InternalEObject) newCommunicationLink).eInverseAdd(this, | ||
140 | EOPPOSITE_FEATURE_BASE - SatellitePackage.COMMUNICATING_ELEMENT__COMMUNICATION_LINK, null, | ||
141 | msgs); | ||
142 | msgs = basicSetCommunicationLink(newCommunicationLink, msgs); | ||
143 | if (msgs != null) | ||
144 | msgs.dispatch(); | ||
145 | } else if (eNotificationRequired()) | ||
146 | eNotify(new ENotificationImpl(this, Notification.SET, | ||
147 | SatellitePackage.COMMUNICATING_ELEMENT__COMMUNICATION_LINK, newCommunicationLink, | ||
148 | newCommunicationLink)); | ||
149 | } | ||
150 | |||
151 | /** | ||
152 | * <!-- begin-user-doc --> | ||
153 | * <!-- end-user-doc --> | ||
154 | * @generated | ||
155 | */ | ||
156 | @Override | ||
157 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | 84 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
158 | switch (featureID) { | 85 | switch (featureID) { |
159 | case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: | 86 | case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: |
160 | return ((InternalEList<?>) getCommSubsystem()).basicRemove(otherEnd, msgs); | 87 | return ((InternalEList<?>) getCommSubsystem()).basicRemove(otherEnd, msgs); |
161 | case SatellitePackage.COMMUNICATING_ELEMENT__COMMUNICATION_LINK: | ||
162 | return basicSetCommunicationLink(null, msgs); | ||
163 | } | 88 | } |
164 | return super.eInverseRemove(otherEnd, featureID, msgs); | 89 | return super.eInverseRemove(otherEnd, featureID, msgs); |
165 | } | 90 | } |
@@ -174,8 +99,6 @@ public abstract class CommunicatingElementImpl extends MinimalEObjectImpl.Contai | |||
174 | switch (featureID) { | 99 | switch (featureID) { |
175 | case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: | 100 | case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: |
176 | return getCommSubsystem(); | 101 | return getCommSubsystem(); |
177 | case SatellitePackage.COMMUNICATING_ELEMENT__COMMUNICATION_LINK: | ||
178 | return getCommunicationLink(); | ||
179 | } | 102 | } |
180 | return super.eGet(featureID, resolve, coreType); | 103 | return super.eGet(featureID, resolve, coreType); |
181 | } | 104 | } |
@@ -193,9 +116,6 @@ public abstract class CommunicatingElementImpl extends MinimalEObjectImpl.Contai | |||
193 | getCommSubsystem().clear(); | 116 | getCommSubsystem().clear(); |
194 | getCommSubsystem().addAll((Collection<? extends CommSubsystem>) newValue); | 117 | getCommSubsystem().addAll((Collection<? extends CommSubsystem>) newValue); |
195 | return; | 118 | return; |
196 | case SatellitePackage.COMMUNICATING_ELEMENT__COMMUNICATION_LINK: | ||
197 | setCommunicationLink((DirectedCommunicationLink) newValue); | ||
198 | return; | ||
199 | } | 119 | } |
200 | super.eSet(featureID, newValue); | 120 | super.eSet(featureID, newValue); |
201 | } | 121 | } |
@@ -211,9 +131,6 @@ public abstract class CommunicatingElementImpl extends MinimalEObjectImpl.Contai | |||
211 | case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: | 131 | case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: |
212 | getCommSubsystem().clear(); | 132 | getCommSubsystem().clear(); |
213 | return; | 133 | return; |
214 | case SatellitePackage.COMMUNICATING_ELEMENT__COMMUNICATION_LINK: | ||
215 | setCommunicationLink((DirectedCommunicationLink) null); | ||
216 | return; | ||
217 | } | 134 | } |
218 | super.eUnset(featureID); | 135 | super.eUnset(featureID); |
219 | } | 136 | } |
@@ -228,8 +145,6 @@ public abstract class CommunicatingElementImpl extends MinimalEObjectImpl.Contai | |||
228 | switch (featureID) { | 145 | switch (featureID) { |
229 | case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: | 146 | case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: |
230 | return commSubsystem != null && !commSubsystem.isEmpty(); | 147 | return commSubsystem != null && !commSubsystem.isEmpty(); |
231 | case SatellitePackage.COMMUNICATING_ELEMENT__COMMUNICATION_LINK: | ||
232 | return communicationLink != null; | ||
233 | } | 148 | } |
234 | return super.eIsSet(featureID); | 149 | return super.eIsSet(featureID); |
235 | } | 150 | } |
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/DirectedCommunicationLinkImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/DirectedCommunicationLinkImpl.java deleted file mode 100644 index 2df1328f..00000000 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/DirectedCommunicationLinkImpl.java +++ /dev/null | |||
@@ -1,227 +0,0 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package satellite.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 satellite.CommSubsystem; | ||
14 | import satellite.DirectedCommunicationLink; | ||
15 | import satellite.SatellitePackage; | ||
16 | |||
17 | /** | ||
18 | * <!-- begin-user-doc --> | ||
19 | * An implementation of the model object '<em><b>Directed Communication Link</b></em>'. | ||
20 | * <!-- end-user-doc --> | ||
21 | * <p> | ||
22 | * The following features are implemented: | ||
23 | * </p> | ||
24 | * <ul> | ||
25 | * <li>{@link satellite.impl.DirectedCommunicationLinkImpl#getSource <em>Source</em>}</li> | ||
26 | * <li>{@link satellite.impl.DirectedCommunicationLinkImpl#getTarget <em>Target</em>}</li> | ||
27 | * </ul> | ||
28 | * | ||
29 | * @generated | ||
30 | */ | ||
31 | public class DirectedCommunicationLinkImpl extends MinimalEObjectImpl.Container implements DirectedCommunicationLink { | ||
32 | /** | ||
33 | * The cached value of the '{@link #getSource() <em>Source</em>}' reference. | ||
34 | * <!-- begin-user-doc --> | ||
35 | * <!-- end-user-doc --> | ||
36 | * @see #getSource() | ||
37 | * @generated | ||
38 | * @ordered | ||
39 | */ | ||
40 | protected CommSubsystem source; | ||
41 | |||
42 | /** | ||
43 | * The cached value of the '{@link #getTarget() <em>Target</em>}' reference. | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @see #getTarget() | ||
47 | * @generated | ||
48 | * @ordered | ||
49 | */ | ||
50 | protected CommSubsystem target; | ||
51 | |||
52 | /** | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @generated | ||
56 | */ | ||
57 | protected DirectedCommunicationLinkImpl() { | ||
58 | super(); | ||
59 | } | ||
60 | |||
61 | /** | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @generated | ||
65 | */ | ||
66 | @Override | ||
67 | protected EClass eStaticClass() { | ||
68 | return SatellitePackage.Literals.DIRECTED_COMMUNICATION_LINK; | ||
69 | } | ||
70 | |||
71 | /** | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | */ | ||
76 | @Override | ||
77 | public CommSubsystem getSource() { | ||
78 | if (source != null && source.eIsProxy()) { | ||
79 | InternalEObject oldSource = (InternalEObject) source; | ||
80 | source = (CommSubsystem) eResolveProxy(oldSource); | ||
81 | if (source != oldSource) { | ||
82 | if (eNotificationRequired()) | ||
83 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, | ||
84 | SatellitePackage.DIRECTED_COMMUNICATION_LINK__SOURCE, oldSource, source)); | ||
85 | } | ||
86 | } | ||
87 | return source; | ||
88 | } | ||
89 | |||
90 | /** | ||
91 | * <!-- begin-user-doc --> | ||
92 | * <!-- end-user-doc --> | ||
93 | * @generated | ||
94 | */ | ||
95 | public CommSubsystem basicGetSource() { | ||
96 | return source; | ||
97 | } | ||
98 | |||
99 | /** | ||
100 | * <!-- begin-user-doc --> | ||
101 | * <!-- end-user-doc --> | ||
102 | * @generated | ||
103 | */ | ||
104 | @Override | ||
105 | public void setSource(CommSubsystem newSource) { | ||
106 | CommSubsystem oldSource = source; | ||
107 | source = newSource; | ||
108 | if (eNotificationRequired()) | ||
109 | eNotify(new ENotificationImpl(this, Notification.SET, SatellitePackage.DIRECTED_COMMUNICATION_LINK__SOURCE, | ||
110 | oldSource, source)); | ||
111 | } | ||
112 | |||
113 | /** | ||
114 | * <!-- begin-user-doc --> | ||
115 | * <!-- end-user-doc --> | ||
116 | * @generated | ||
117 | */ | ||
118 | @Override | ||
119 | public CommSubsystem getTarget() { | ||
120 | if (target != null && target.eIsProxy()) { | ||
121 | InternalEObject oldTarget = (InternalEObject) target; | ||
122 | target = (CommSubsystem) eResolveProxy(oldTarget); | ||
123 | if (target != oldTarget) { | ||
124 | if (eNotificationRequired()) | ||
125 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, | ||
126 | SatellitePackage.DIRECTED_COMMUNICATION_LINK__TARGET, oldTarget, target)); | ||
127 | } | ||
128 | } | ||
129 | return target; | ||
130 | } | ||
131 | |||
132 | /** | ||
133 | * <!-- begin-user-doc --> | ||
134 | * <!-- end-user-doc --> | ||
135 | * @generated | ||
136 | */ | ||
137 | public CommSubsystem basicGetTarget() { | ||
138 | return target; | ||
139 | } | ||
140 | |||
141 | /** | ||
142 | * <!-- begin-user-doc --> | ||
143 | * <!-- end-user-doc --> | ||
144 | * @generated | ||
145 | */ | ||
146 | @Override | ||
147 | public void setTarget(CommSubsystem newTarget) { | ||
148 | CommSubsystem oldTarget = target; | ||
149 | target = newTarget; | ||
150 | if (eNotificationRequired()) | ||
151 | eNotify(new ENotificationImpl(this, Notification.SET, SatellitePackage.DIRECTED_COMMUNICATION_LINK__TARGET, | ||
152 | oldTarget, target)); | ||
153 | } | ||
154 | |||
155 | /** | ||
156 | * <!-- begin-user-doc --> | ||
157 | * <!-- end-user-doc --> | ||
158 | * @generated | ||
159 | */ | ||
160 | @Override | ||
161 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | ||
162 | switch (featureID) { | ||
163 | case SatellitePackage.DIRECTED_COMMUNICATION_LINK__SOURCE: | ||
164 | if (resolve) | ||
165 | return getSource(); | ||
166 | return basicGetSource(); | ||
167 | case SatellitePackage.DIRECTED_COMMUNICATION_LINK__TARGET: | ||
168 | if (resolve) | ||
169 | return getTarget(); | ||
170 | return basicGetTarget(); | ||
171 | } | ||
172 | return super.eGet(featureID, resolve, coreType); | ||
173 | } | ||
174 | |||
175 | /** | ||
176 | * <!-- begin-user-doc --> | ||
177 | * <!-- end-user-doc --> | ||
178 | * @generated | ||
179 | */ | ||
180 | @Override | ||
181 | public void eSet(int featureID, Object newValue) { | ||
182 | switch (featureID) { | ||
183 | case SatellitePackage.DIRECTED_COMMUNICATION_LINK__SOURCE: | ||
184 | setSource((CommSubsystem) newValue); | ||
185 | return; | ||
186 | case SatellitePackage.DIRECTED_COMMUNICATION_LINK__TARGET: | ||
187 | setTarget((CommSubsystem) newValue); | ||
188 | return; | ||
189 | } | ||
190 | super.eSet(featureID, newValue); | ||
191 | } | ||
192 | |||
193 | /** | ||
194 | * <!-- begin-user-doc --> | ||
195 | * <!-- end-user-doc --> | ||
196 | * @generated | ||
197 | */ | ||
198 | @Override | ||
199 | public void eUnset(int featureID) { | ||
200 | switch (featureID) { | ||
201 | case SatellitePackage.DIRECTED_COMMUNICATION_LINK__SOURCE: | ||
202 | setSource((CommSubsystem) null); | ||
203 | return; | ||
204 | case SatellitePackage.DIRECTED_COMMUNICATION_LINK__TARGET: | ||
205 | setTarget((CommSubsystem) null); | ||
206 | return; | ||
207 | } | ||
208 | super.eUnset(featureID); | ||
209 | } | ||
210 | |||
211 | /** | ||
212 | * <!-- begin-user-doc --> | ||
213 | * <!-- end-user-doc --> | ||
214 | * @generated | ||
215 | */ | ||
216 | @Override | ||
217 | public boolean eIsSet(int featureID) { | ||
218 | switch (featureID) { | ||
219 | case SatellitePackage.DIRECTED_COMMUNICATION_LINK__SOURCE: | ||
220 | return source != null; | ||
221 | case SatellitePackage.DIRECTED_COMMUNICATION_LINK__TARGET: | ||
222 | return target != null; | ||
223 | } | ||
224 | return super.eIsSet(featureID); | ||
225 | } | ||
226 | |||
227 | } //DirectedCommunicationLinkImpl | ||
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatelliteFactoryImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatelliteFactoryImpl.java index 135527c6..71e16abf 100644 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatelliteFactoryImpl.java +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatelliteFactoryImpl.java | |||
@@ -60,8 +60,6 @@ public class SatelliteFactoryImpl extends EFactoryImpl implements SatelliteFacto | |||
60 | return createInterferometryMission(); | 60 | return createInterferometryMission(); |
61 | case SatellitePackage.GROUND_STATION_NETWORK: | 61 | case SatellitePackage.GROUND_STATION_NETWORK: |
62 | return createGroundStationNetwork(); | 62 | return createGroundStationNetwork(); |
63 | case SatellitePackage.DIRECTED_COMMUNICATION_LINK: | ||
64 | return createDirectedCommunicationLink(); | ||
65 | case SatellitePackage.INTERFEROMETRY_PAYLOAD: | 63 | case SatellitePackage.INTERFEROMETRY_PAYLOAD: |
66 | return createInterferometryPayload(); | 64 | return createInterferometryPayload(); |
67 | case SatellitePackage.CUBE_SAT3_U: | 65 | case SatellitePackage.CUBE_SAT3_U: |
@@ -109,17 +107,6 @@ public class SatelliteFactoryImpl extends EFactoryImpl implements SatelliteFacto | |||
109 | * @generated | 107 | * @generated |
110 | */ | 108 | */ |
111 | @Override | 109 | @Override |
112 | public DirectedCommunicationLink createDirectedCommunicationLink() { | ||
113 | DirectedCommunicationLinkImpl directedCommunicationLink = new DirectedCommunicationLinkImpl(); | ||
114 | return directedCommunicationLink; | ||
115 | } | ||
116 | |||
117 | /** | ||
118 | * <!-- begin-user-doc --> | ||
119 | * <!-- end-user-doc --> | ||
120 | * @generated | ||
121 | */ | ||
122 | @Override | ||
123 | public InterferometryPayload createInterferometryPayload() { | 110 | public InterferometryPayload createInterferometryPayload() { |
124 | InterferometryPayloadImpl interferometryPayload = new InterferometryPayloadImpl(); | 111 | InterferometryPayloadImpl interferometryPayload = new InterferometryPayloadImpl(); |
125 | return interferometryPayload; | 112 | return interferometryPayload; |
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatellitePackageImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatellitePackageImpl.java index daec68a9..e3e20e0c 100644 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatellitePackageImpl.java +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatellitePackageImpl.java | |||
@@ -14,7 +14,6 @@ import satellite.ConstellationMission; | |||
14 | import satellite.CubeSat; | 14 | import satellite.CubeSat; |
15 | import satellite.CubeSat3U; | 15 | import satellite.CubeSat3U; |
16 | import satellite.CubeSat6U; | 16 | import satellite.CubeSat6U; |
17 | import satellite.DirectedCommunicationLink; | ||
18 | import satellite.GroundStationNetwork; | 17 | import satellite.GroundStationNetwork; |
19 | import satellite.InterferometryMission; | 18 | import satellite.InterferometryMission; |
20 | import satellite.InterferometryPayload; | 19 | import satellite.InterferometryPayload; |
@@ -81,13 +80,6 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
81 | * <!-- end-user-doc --> | 80 | * <!-- end-user-doc --> |
82 | * @generated | 81 | * @generated |
83 | */ | 82 | */ |
84 | private EClass directedCommunicationLinkEClass = null; | ||
85 | |||
86 | /** | ||
87 | * <!-- begin-user-doc --> | ||
88 | * <!-- end-user-doc --> | ||
89 | * @generated | ||
90 | */ | ||
91 | private EClass payloadEClass = null; | 83 | private EClass payloadEClass = null; |
92 | 84 | ||
93 | /** | 85 | /** |
@@ -286,16 +278,6 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
286 | * @generated | 278 | * @generated |
287 | */ | 279 | */ |
288 | @Override | 280 | @Override |
289 | public EReference getCommunicatingElement_CommunicationLink() { | ||
290 | return (EReference) communicatingElementEClass.getEStructuralFeatures().get(1); | ||
291 | } | ||
292 | |||
293 | /** | ||
294 | * <!-- begin-user-doc --> | ||
295 | * <!-- end-user-doc --> | ||
296 | * @generated | ||
297 | */ | ||
298 | @Override | ||
299 | public EClass getGroundStationNetwork() { | 281 | public EClass getGroundStationNetwork() { |
300 | return groundStationNetworkEClass; | 282 | return groundStationNetworkEClass; |
301 | } | 283 | } |
@@ -336,28 +318,8 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
336 | * @generated | 318 | * @generated |
337 | */ | 319 | */ |
338 | @Override | 320 | @Override |
339 | public EClass getDirectedCommunicationLink() { | 321 | public EReference getCommSubsystem_Target() { |
340 | return directedCommunicationLinkEClass; | 322 | return (EReference) commSubsystemEClass.getEStructuralFeatures().get(0); |
341 | } | ||
342 | |||
343 | /** | ||
344 | * <!-- begin-user-doc --> | ||
345 | * <!-- end-user-doc --> | ||
346 | * @generated | ||
347 | */ | ||
348 | @Override | ||
349 | public EReference getDirectedCommunicationLink_Source() { | ||
350 | return (EReference) directedCommunicationLinkEClass.getEStructuralFeatures().get(0); | ||
351 | } | ||
352 | |||
353 | /** | ||
354 | * <!-- begin-user-doc --> | ||
355 | * <!-- end-user-doc --> | ||
356 | * @generated | ||
357 | */ | ||
358 | @Override | ||
359 | public EReference getDirectedCommunicationLink_Target() { | ||
360 | return (EReference) directedCommunicationLinkEClass.getEStructuralFeatures().get(1); | ||
361 | } | 323 | } |
362 | 324 | ||
363 | /** | 325 | /** |
@@ -489,7 +451,6 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
489 | 451 | ||
490 | communicatingElementEClass = createEClass(COMMUNICATING_ELEMENT); | 452 | communicatingElementEClass = createEClass(COMMUNICATING_ELEMENT); |
491 | createEReference(communicatingElementEClass, COMMUNICATING_ELEMENT__COMM_SUBSYSTEM); | 453 | createEReference(communicatingElementEClass, COMMUNICATING_ELEMENT__COMM_SUBSYSTEM); |
492 | createEReference(communicatingElementEClass, COMMUNICATING_ELEMENT__COMMUNICATION_LINK); | ||
493 | 454 | ||
494 | groundStationNetworkEClass = createEClass(GROUND_STATION_NETWORK); | 455 | groundStationNetworkEClass = createEClass(GROUND_STATION_NETWORK); |
495 | 456 | ||
@@ -497,10 +458,7 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
497 | createEReference(spacecraftEClass, SPACECRAFT__PAYLOAD); | 458 | createEReference(spacecraftEClass, SPACECRAFT__PAYLOAD); |
498 | 459 | ||
499 | commSubsystemEClass = createEClass(COMM_SUBSYSTEM); | 460 | commSubsystemEClass = createEClass(COMM_SUBSYSTEM); |
500 | 461 | createEReference(commSubsystemEClass, COMM_SUBSYSTEM__TARGET); | |
501 | directedCommunicationLinkEClass = createEClass(DIRECTED_COMMUNICATION_LINK); | ||
502 | createEReference(directedCommunicationLinkEClass, DIRECTED_COMMUNICATION_LINK__SOURCE); | ||
503 | createEReference(directedCommunicationLinkEClass, DIRECTED_COMMUNICATION_LINK__TARGET); | ||
504 | 462 | ||
505 | payloadEClass = createEClass(PAYLOAD); | 463 | payloadEClass = createEClass(PAYLOAD); |
506 | 464 | ||
@@ -583,9 +541,6 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
583 | initEReference(getCommunicatingElement_CommSubsystem(), this.getCommSubsystem(), null, "commSubsystem", null, 1, | 541 | initEReference(getCommunicatingElement_CommSubsystem(), this.getCommSubsystem(), null, "commSubsystem", null, 1, |
584 | 2, CommunicatingElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, | 542 | 2, CommunicatingElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, |
585 | !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 543 | !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
586 | initEReference(getCommunicatingElement_CommunicationLink(), this.getDirectedCommunicationLink(), null, | ||
587 | "communicationLink", null, 0, 1, CommunicatingElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, | ||
588 | IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
589 | 544 | ||
590 | initEClass(groundStationNetworkEClass, GroundStationNetwork.class, "GroundStationNetwork", !IS_ABSTRACT, | 545 | initEClass(groundStationNetworkEClass, GroundStationNetwork.class, "GroundStationNetwork", !IS_ABSTRACT, |
591 | !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | 546 | !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
@@ -598,15 +553,9 @@ public class SatellitePackageImpl extends EPackageImpl implements SatellitePacka | |||
598 | 553 | ||
599 | initEClass(commSubsystemEClass, CommSubsystem.class, "CommSubsystem", IS_ABSTRACT, !IS_INTERFACE, | 554 | initEClass(commSubsystemEClass, CommSubsystem.class, "CommSubsystem", IS_ABSTRACT, !IS_INTERFACE, |
600 | IS_GENERATED_INSTANCE_CLASS); | 555 | IS_GENERATED_INSTANCE_CLASS); |
601 | 556 | initEReference(getCommSubsystem_Target(), this.getCommSubsystem(), null, "target", null, 0, 1, | |
602 | initEClass(directedCommunicationLinkEClass, DirectedCommunicationLink.class, "DirectedCommunicationLink", | 557 | CommSubsystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, |
603 | !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | 558 | !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
604 | initEReference(getDirectedCommunicationLink_Source(), this.getCommSubsystem(), null, "source", null, 1, 1, | ||
605 | DirectedCommunicationLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, | ||
606 | IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
607 | initEReference(getDirectedCommunicationLink_Target(), this.getCommSubsystem(), null, "target", null, 1, 1, | ||
608 | DirectedCommunicationLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, | ||
609 | IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
610 | 559 | ||
611 | initEClass(payloadEClass, Payload.class, "Payload", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | 560 | initEClass(payloadEClass, Payload.class, "Payload", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
612 | 561 | ||