From 32a4f3392a7d0c44439c0c9b960ef1cfb5e3cc2f Mon Sep 17 00:00:00 2001 From: ArenBabikian Date: Fri, 25 Oct 2019 04:15:39 -0400 Subject: VAMPIRE: post-submission push --- .../impl/ALSRangeRestrictionLeftImpl.java | 264 +++++++++++++++++++++ 1 file changed, 264 insertions(+) create mode 100644 Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSRangeRestrictionLeftImpl.java (limited to 'Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSRangeRestrictionLeftImpl.java') diff --git a/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSRangeRestrictionLeftImpl.java b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSRangeRestrictionLeftImpl.java new file mode 100644 index 00000000..f29d5f07 --- /dev/null +++ b/Solvers/Alloy-Solver2/hu.bme.mit.inf.dslreasoner.alloy.language/src-gen/hu/bme/mit/inf/dslreasoner/alloyLanguage/impl/ALSRangeRestrictionLeftImpl.java @@ -0,0 +1,264 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.alloyLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSRangeRestrictionLeft; +import hu.bme.mit.inf.dslreasoner.alloyLanguage.ALSTerm; +import hu.bme.mit.inf.dslreasoner.alloyLanguage.AlloyLanguagePackage; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'ALS Range Restriction Left'. + * + *

+ * The following features are implemented: + *

+ * + * + * @generated + */ +public class ALSRangeRestrictionLeftImpl extends ALSTermImpl implements ALSRangeRestrictionLeft +{ + /** + * The cached value of the '{@link #getFilter() Filter}' containment reference. + * + * + * @see #getFilter() + * @generated + * @ordered + */ + protected ALSTerm filter; + + /** + * The cached value of the '{@link #getRelation() Relation}' containment reference. + * + * + * @see #getRelation() + * @generated + * @ordered + */ + protected ALSTerm relation; + + /** + * + * + * @generated + */ + protected ALSRangeRestrictionLeftImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return AlloyLanguagePackage.Literals.ALS_RANGE_RESTRICTION_LEFT; + } + + /** + * + * + * @generated + */ + public ALSTerm getFilter() + { + return filter; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetFilter(ALSTerm newFilter, NotificationChain msgs) + { + ALSTerm oldFilter = filter; + filter = newFilter; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_RANGE_RESTRICTION_LEFT__FILTER, oldFilter, newFilter); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setFilter(ALSTerm newFilter) + { + if (newFilter != filter) + { + NotificationChain msgs = null; + if (filter != null) + msgs = ((InternalEObject)filter).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_RANGE_RESTRICTION_LEFT__FILTER, null, msgs); + if (newFilter != null) + msgs = ((InternalEObject)newFilter).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_RANGE_RESTRICTION_LEFT__FILTER, null, msgs); + msgs = basicSetFilter(newFilter, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_RANGE_RESTRICTION_LEFT__FILTER, newFilter, newFilter)); + } + + /** + * + * + * @generated + */ + public ALSTerm getRelation() + { + return relation; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetRelation(ALSTerm newRelation, NotificationChain msgs) + { + ALSTerm oldRelation = relation; + relation = newRelation; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_RANGE_RESTRICTION_LEFT__RELATION, oldRelation, newRelation); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setRelation(ALSTerm newRelation) + { + if (newRelation != relation) + { + NotificationChain msgs = null; + if (relation != null) + msgs = ((InternalEObject)relation).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_RANGE_RESTRICTION_LEFT__RELATION, null, msgs); + if (newRelation != null) + msgs = ((InternalEObject)newRelation).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlloyLanguagePackage.ALS_RANGE_RESTRICTION_LEFT__RELATION, null, msgs); + msgs = basicSetRelation(newRelation, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, AlloyLanguagePackage.ALS_RANGE_RESTRICTION_LEFT__RELATION, newRelation, newRelation)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case AlloyLanguagePackage.ALS_RANGE_RESTRICTION_LEFT__FILTER: + return basicSetFilter(null, msgs); + case AlloyLanguagePackage.ALS_RANGE_RESTRICTION_LEFT__RELATION: + return basicSetRelation(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case AlloyLanguagePackage.ALS_RANGE_RESTRICTION_LEFT__FILTER: + return getFilter(); + case AlloyLanguagePackage.ALS_RANGE_RESTRICTION_LEFT__RELATION: + return getRelation(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case AlloyLanguagePackage.ALS_RANGE_RESTRICTION_LEFT__FILTER: + setFilter((ALSTerm)newValue); + return; + case AlloyLanguagePackage.ALS_RANGE_RESTRICTION_LEFT__RELATION: + setRelation((ALSTerm)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case AlloyLanguagePackage.ALS_RANGE_RESTRICTION_LEFT__FILTER: + setFilter((ALSTerm)null); + return; + case AlloyLanguagePackage.ALS_RANGE_RESTRICTION_LEFT__RELATION: + setRelation((ALSTerm)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case AlloyLanguagePackage.ALS_RANGE_RESTRICTION_LEFT__FILTER: + return filter != null; + case AlloyLanguagePackage.ALS_RANGE_RESTRICTION_LEFT__RELATION: + return relation != null; + } + return super.eIsSet(featureID); + } + +} //ALSRangeRestrictionLeftImpl -- cgit v1.2.3-70-g09d2