diff options
author | 2019-05-06 18:42:22 -0400 | |
---|---|---|
committer | 2019-05-06 18:42:22 -0400 | |
commit | 09b1255f11ee17828da706f682e33f50316887fe (patch) | |
tree | f3783961c521b73201a9d079be78feb26e8a285c /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-09b1255f11ee17828da706f682e33f50316887fe.tar.gz VIATRA-Generator-09b1255f11ee17828da706f682e33f50316887fe.tar.zst VIATRA-Generator-09b1255f11ee17828da706f682e33f50316887fe.zip |
Trying to implement spacecraft 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 | 51 |
1 files changed, 4 insertions, 47 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 2135af2c..9d74270a 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 | |||
@@ -49,15 +49,6 @@ public abstract class SpacecraftImpl extends CommunicatingElementImpl implements | |||
49 | * @ordered | 49 | * @ordered |
50 | */ | 50 | */ |
51 | protected static final SpacecraftKind KIND_EDEFAULT = SpacecraftKind.CUBE_SAT3_U; | 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 | 52 | ||
62 | /** | 53 | /** |
63 | * <!-- begin-user-doc --> | 54 | * <!-- begin-user-doc --> |
@@ -137,20 +128,9 @@ public abstract class SpacecraftImpl extends CommunicatingElementImpl implements | |||
137 | */ | 128 | */ |
138 | @Override | 129 | @Override |
139 | public SpacecraftKind getKind() { | 130 | public SpacecraftKind getKind() { |
140 | return kind; | 131 | // TODO: implement this method to return the 'Kind' attribute |
141 | } | 132 | // Ensure that you remove @generated or mark it @generated NOT |
142 | 133 | throw new UnsupportedOperationException(); | |
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 | } | 134 | } |
155 | 135 | ||
156 | /** | 136 | /** |
@@ -194,9 +174,6 @@ public abstract class SpacecraftImpl extends CommunicatingElementImpl implements | |||
194 | case SatellitePackage.SPACECRAFT__PAYLOAD: | 174 | case SatellitePackage.SPACECRAFT__PAYLOAD: |
195 | setPayload((Payload) newValue); | 175 | setPayload((Payload) newValue); |
196 | return; | 176 | return; |
197 | case SatellitePackage.SPACECRAFT__KIND: | ||
198 | setKind((SpacecraftKind) newValue); | ||
199 | return; | ||
200 | } | 177 | } |
201 | super.eSet(featureID, newValue); | 178 | super.eSet(featureID, newValue); |
202 | } | 179 | } |
@@ -212,9 +189,6 @@ public abstract class SpacecraftImpl extends CommunicatingElementImpl implements | |||
212 | case SatellitePackage.SPACECRAFT__PAYLOAD: | 189 | case SatellitePackage.SPACECRAFT__PAYLOAD: |
213 | setPayload((Payload) null); | 190 | setPayload((Payload) null); |
214 | return; | 191 | return; |
215 | case SatellitePackage.SPACECRAFT__KIND: | ||
216 | setKind(KIND_EDEFAULT); | ||
217 | return; | ||
218 | } | 192 | } |
219 | super.eUnset(featureID); | 193 | super.eUnset(featureID); |
220 | } | 194 | } |
@@ -230,26 +204,9 @@ public abstract class SpacecraftImpl extends CommunicatingElementImpl implements | |||
230 | case SatellitePackage.SPACECRAFT__PAYLOAD: | 204 | case SatellitePackage.SPACECRAFT__PAYLOAD: |
231 | return payload != null; | 205 | return payload != null; |
232 | case SatellitePackage.SPACECRAFT__KIND: | 206 | case SatellitePackage.SPACECRAFT__KIND: |
233 | return kind != KIND_EDEFAULT; | 207 | return getKind() != KIND_EDEFAULT; |
234 | } | 208 | } |
235 | return super.eIsSet(featureID); | 209 | return super.eIsSet(featureID); |
236 | } | 210 | } |
237 | 211 | ||
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 | |||
255 | } //SpacecraftImpl | 212 | } //SpacecraftImpl |