/** */ package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTParThenCombinator; import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTReasoningTactic; import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; 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 'SMT Par Then Combinator'. * *

* The following features are implemented: *

*

* * @generated */ public class SMTParThenCombinatorImpl extends SMTReasoningCombinatorImpl implements SMTParThenCombinator { /** * The cached value of the '{@link #getPreProcessingTactic() Pre Processing Tactic}' containment reference. * * * @see #getPreProcessingTactic() * @generated * @ordered */ protected SMTReasoningTactic preProcessingTactic; /** * The cached value of the '{@link #getParalellyPostpricessingTactic() Paralelly Postpricessing Tactic}' containment reference. * * * @see #getParalellyPostpricessingTactic() * @generated * @ordered */ protected SMTReasoningTactic paralellyPostpricessingTactic; /** * * * @generated */ protected SMTParThenCombinatorImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return SmtLanguagePackage.Literals.SMT_PAR_THEN_COMBINATOR; } /** * * * @generated */ public SMTReasoningTactic getPreProcessingTactic() { return preProcessingTactic; } /** * * * @generated */ public NotificationChain basicSetPreProcessingTactic(SMTReasoningTactic newPreProcessingTactic, NotificationChain msgs) { SMTReasoningTactic oldPreProcessingTactic = preProcessingTactic; preProcessingTactic = newPreProcessingTactic; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_PAR_THEN_COMBINATOR__PRE_PROCESSING_TACTIC, oldPreProcessingTactic, newPreProcessingTactic); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * * * @generated */ public void setPreProcessingTactic(SMTReasoningTactic newPreProcessingTactic) { if (newPreProcessingTactic != preProcessingTactic) { NotificationChain msgs = null; if (preProcessingTactic != null) msgs = ((InternalEObject)preProcessingTactic).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_PAR_THEN_COMBINATOR__PRE_PROCESSING_TACTIC, null, msgs); if (newPreProcessingTactic != null) msgs = ((InternalEObject)newPreProcessingTactic).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_PAR_THEN_COMBINATOR__PRE_PROCESSING_TACTIC, null, msgs); msgs = basicSetPreProcessingTactic(newPreProcessingTactic, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_PAR_THEN_COMBINATOR__PRE_PROCESSING_TACTIC, newPreProcessingTactic, newPreProcessingTactic)); } /** * * * @generated */ public SMTReasoningTactic getParalellyPostpricessingTactic() { return paralellyPostpricessingTactic; } /** * * * @generated */ public NotificationChain basicSetParalellyPostpricessingTactic(SMTReasoningTactic newParalellyPostpricessingTactic, NotificationChain msgs) { SMTReasoningTactic oldParalellyPostpricessingTactic = paralellyPostpricessingTactic; paralellyPostpricessingTactic = newParalellyPostpricessingTactic; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_PAR_THEN_COMBINATOR__PARALELLY_POSTPRICESSING_TACTIC, oldParalellyPostpricessingTactic, newParalellyPostpricessingTactic); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * * * @generated */ public void setParalellyPostpricessingTactic(SMTReasoningTactic newParalellyPostpricessingTactic) { if (newParalellyPostpricessingTactic != paralellyPostpricessingTactic) { NotificationChain msgs = null; if (paralellyPostpricessingTactic != null) msgs = ((InternalEObject)paralellyPostpricessingTactic).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_PAR_THEN_COMBINATOR__PARALELLY_POSTPRICESSING_TACTIC, null, msgs); if (newParalellyPostpricessingTactic != null) msgs = ((InternalEObject)newParalellyPostpricessingTactic).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_PAR_THEN_COMBINATOR__PARALELLY_POSTPRICESSING_TACTIC, null, msgs); msgs = basicSetParalellyPostpricessingTactic(newParalellyPostpricessingTactic, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_PAR_THEN_COMBINATOR__PARALELLY_POSTPRICESSING_TACTIC, newParalellyPostpricessingTactic, newParalellyPostpricessingTactic)); } /** * * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case SmtLanguagePackage.SMT_PAR_THEN_COMBINATOR__PRE_PROCESSING_TACTIC: return basicSetPreProcessingTactic(null, msgs); case SmtLanguagePackage.SMT_PAR_THEN_COMBINATOR__PARALELLY_POSTPRICESSING_TACTIC: return basicSetParalellyPostpricessingTactic(null, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case SmtLanguagePackage.SMT_PAR_THEN_COMBINATOR__PRE_PROCESSING_TACTIC: return getPreProcessingTactic(); case SmtLanguagePackage.SMT_PAR_THEN_COMBINATOR__PARALELLY_POSTPRICESSING_TACTIC: return getParalellyPostpricessingTactic(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case SmtLanguagePackage.SMT_PAR_THEN_COMBINATOR__PRE_PROCESSING_TACTIC: setPreProcessingTactic((SMTReasoningTactic)newValue); return; case SmtLanguagePackage.SMT_PAR_THEN_COMBINATOR__PARALELLY_POSTPRICESSING_TACTIC: setParalellyPostpricessingTactic((SMTReasoningTactic)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case SmtLanguagePackage.SMT_PAR_THEN_COMBINATOR__PRE_PROCESSING_TACTIC: setPreProcessingTactic((SMTReasoningTactic)null); return; case SmtLanguagePackage.SMT_PAR_THEN_COMBINATOR__PARALELLY_POSTPRICESSING_TACTIC: setParalellyPostpricessingTactic((SMTReasoningTactic)null); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case SmtLanguagePackage.SMT_PAR_THEN_COMBINATOR__PRE_PROCESSING_TACTIC: return preProcessingTactic != null; case SmtLanguagePackage.SMT_PAR_THEN_COMBINATOR__PARALELLY_POSTPRICESSING_TACTIC: return paralellyPostpricessingTactic != null; } return super.eIsSet(featureID); } } //SMTParThenCombinatorImpl