diff options
author | 2019-05-04 17:56:18 -0400 | |
---|---|---|
committer | 2019-05-04 17:56:18 -0400 | |
commit | b9aaa826e1e7504958b6e75f35e9dcd09086a13e (patch) | |
tree | df7b83804e74efb86fb845862c5523d04d7edeb1 /Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/SpacecraftImpl.java | |
parent | Merge remote-tracking branch 'origin/master' into kris (diff) | |
download | VIATRA-Generator-b9aaa826e1e7504958b6e75f35e9dcd09086a13e.tar.gz VIATRA-Generator-b9aaa826e1e7504958b6e75f35e9dcd09086a13e.tar.zst VIATRA-Generator-b9aaa826e1e7504958b6e75f35e9dcd09086a13e.zip |
Metrics for satellite case study
Diffstat (limited to 'Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/SpacecraftImpl.java')
-rw-r--r-- | Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/SpacecraftImpl.java | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/SpacecraftImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/SpacecraftImpl.java index caefd377..2135af2c 100644 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/SpacecraftImpl.java +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/SpacecraftImpl.java | |||
@@ -6,6 +6,7 @@ import hu.bme.mit.inf.dslreasoner.domains.satellite.Payload; | |||
6 | import hu.bme.mit.inf.dslreasoner.domains.satellite.SatellitePackage; | 6 | import hu.bme.mit.inf.dslreasoner.domains.satellite.SatellitePackage; |
7 | import hu.bme.mit.inf.dslreasoner.domains.satellite.Spacecraft; | 7 | import hu.bme.mit.inf.dslreasoner.domains.satellite.Spacecraft; |
8 | 8 | ||
9 | import hu.bme.mit.inf.dslreasoner.domains.satellite.SpacecraftKind; | ||
9 | import org.eclipse.emf.common.notify.Notification; | 10 | import org.eclipse.emf.common.notify.Notification; |
10 | import org.eclipse.emf.common.notify.NotificationChain; | 11 | import org.eclipse.emf.common.notify.NotificationChain; |
11 | 12 | ||
@@ -23,6 +24,7 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl; | |||
23 | * </p> | 24 | * </p> |
24 | * <ul> | 25 | * <ul> |
25 | * <li>{@link hu.bme.mit.inf.dslreasoner.domains.satellite.impl.SpacecraftImpl#getPayload <em>Payload</em>}</li> | 26 | * <li>{@link hu.bme.mit.inf.dslreasoner.domains.satellite.impl.SpacecraftImpl#getPayload <em>Payload</em>}</li> |
27 | * <li>{@link hu.bme.mit.inf.dslreasoner.domains.satellite.impl.SpacecraftImpl#getKind <em>Kind</em>}</li> | ||
26 | * </ul> | 28 | * </ul> |
27 | * | 29 | * |
28 | * @generated | 30 | * @generated |
@@ -39,6 +41,25 @@ public abstract class SpacecraftImpl extends CommunicatingElementImpl implements | |||
39 | protected Payload payload; | 41 | protected Payload payload; |
40 | 42 | ||
41 | /** | 43 | /** |
44 | * The default value of the '{@link #getKind() <em>Kind</em>}' attribute. | ||
45 | * <!-- begin-user-doc --> | ||
46 | * <!-- end-user-doc --> | ||
47 | * @see #getKind() | ||
48 | * @generated | ||
49 | * @ordered | ||
50 | */ | ||
51 | protected static final SpacecraftKind KIND_EDEFAULT = SpacecraftKind.CUBE_SAT3_U; | ||
52 | /** | ||
53 | * The cached value of the '{@link #getKind() <em>Kind</em>}' attribute. | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @see #getKind() | ||
57 | * @generated | ||
58 | * @ordered | ||
59 | */ | ||
60 | protected SpacecraftKind kind = KIND_EDEFAULT; | ||
61 | |||
62 | /** | ||
42 | * <!-- begin-user-doc --> | 63 | * <!-- begin-user-doc --> |
43 | * <!-- end-user-doc --> | 64 | * <!-- end-user-doc --> |
44 | * @generated | 65 | * @generated |
@@ -115,6 +136,29 @@ public abstract class SpacecraftImpl extends CommunicatingElementImpl implements | |||
115 | * @generated | 136 | * @generated |
116 | */ | 137 | */ |
117 | @Override | 138 | @Override |
139 | public SpacecraftKind getKind() { | ||
140 | return kind; | ||
141 | } | ||
142 | |||
143 | /** | ||
144 | * <!-- begin-user-doc --> | ||
145 | * <!-- end-user-doc --> | ||
146 | * @generated | ||
147 | */ | ||
148 | @Override | ||
149 | public void setKind(SpacecraftKind newKind) { | ||
150 | SpacecraftKind oldKind = kind; | ||
151 | kind = newKind == null ? KIND_EDEFAULT : newKind; | ||
152 | if (eNotificationRequired()) | ||
153 | eNotify(new ENotificationImpl(this, Notification.SET, SatellitePackage.SPACECRAFT__KIND, oldKind, kind)); | ||
154 | } | ||
155 | |||
156 | /** | ||
157 | * <!-- begin-user-doc --> | ||
158 | * <!-- end-user-doc --> | ||
159 | * @generated | ||
160 | */ | ||
161 | @Override | ||
118 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | 162 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
119 | switch (featureID) { | 163 | switch (featureID) { |
120 | case SatellitePackage.SPACECRAFT__PAYLOAD: | 164 | case SatellitePackage.SPACECRAFT__PAYLOAD: |
@@ -133,6 +177,8 @@ public abstract class SpacecraftImpl extends CommunicatingElementImpl implements | |||
133 | switch (featureID) { | 177 | switch (featureID) { |
134 | case SatellitePackage.SPACECRAFT__PAYLOAD: | 178 | case SatellitePackage.SPACECRAFT__PAYLOAD: |
135 | return getPayload(); | 179 | return getPayload(); |
180 | case SatellitePackage.SPACECRAFT__KIND: | ||
181 | return getKind(); | ||
136 | } | 182 | } |
137 | return super.eGet(featureID, resolve, coreType); | 183 | return super.eGet(featureID, resolve, coreType); |
138 | } | 184 | } |
@@ -148,6 +194,9 @@ public abstract class SpacecraftImpl extends CommunicatingElementImpl implements | |||
148 | case SatellitePackage.SPACECRAFT__PAYLOAD: | 194 | case SatellitePackage.SPACECRAFT__PAYLOAD: |
149 | setPayload((Payload) newValue); | 195 | setPayload((Payload) newValue); |
150 | return; | 196 | return; |
197 | case SatellitePackage.SPACECRAFT__KIND: | ||
198 | setKind((SpacecraftKind) newValue); | ||
199 | return; | ||
151 | } | 200 | } |
152 | super.eSet(featureID, newValue); | 201 | super.eSet(featureID, newValue); |
153 | } | 202 | } |
@@ -163,6 +212,9 @@ public abstract class SpacecraftImpl extends CommunicatingElementImpl implements | |||
163 | case SatellitePackage.SPACECRAFT__PAYLOAD: | 212 | case SatellitePackage.SPACECRAFT__PAYLOAD: |
164 | setPayload((Payload) null); | 213 | setPayload((Payload) null); |
165 | return; | 214 | return; |
215 | case SatellitePackage.SPACECRAFT__KIND: | ||
216 | setKind(KIND_EDEFAULT); | ||
217 | return; | ||
166 | } | 218 | } |
167 | super.eUnset(featureID); | 219 | super.eUnset(featureID); |
168 | } | 220 | } |
@@ -177,8 +229,27 @@ public abstract class SpacecraftImpl extends CommunicatingElementImpl implements | |||
177 | switch (featureID) { | 229 | switch (featureID) { |
178 | case SatellitePackage.SPACECRAFT__PAYLOAD: | 230 | case SatellitePackage.SPACECRAFT__PAYLOAD: |
179 | return payload != null; | 231 | return payload != null; |
232 | case SatellitePackage.SPACECRAFT__KIND: | ||
233 | return kind != KIND_EDEFAULT; | ||
180 | } | 234 | } |
181 | return super.eIsSet(featureID); | 235 | return super.eIsSet(featureID); |
182 | } | 236 | } |
183 | 237 | ||
238 | /** | ||
239 | * <!-- begin-user-doc --> | ||
240 | * <!-- end-user-doc --> | ||
241 | * @generated | ||
242 | */ | ||
243 | @Override | ||
244 | public String toString() { | ||
245 | if (eIsProxy()) | ||
246 | return super.toString(); | ||
247 | |||
248 | StringBuilder result = new StringBuilder(super.toString()); | ||
249 | result.append(" (kind: "); | ||
250 | result.append(kind); | ||
251 | result.append(')'); | ||
252 | return result.toString(); | ||
253 | } | ||
254 | |||
184 | } //SpacecraftImpl | 255 | } //SpacecraftImpl |