From 3f5aaab5025b8eb243f414b1c789085327df04f4 Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Wed, 20 Mar 2019 16:09:09 +0100 Subject: Fault tree transformation for partial models WIP --- .../impl/ExactNumberImpl.java | 470 +++++++++++---------- 1 file changed, 237 insertions(+), 233 deletions(-) (limited to 'Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ExactNumberImpl.java') diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ExactNumberImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ExactNumberImpl.java index dcd48fa2..359ad5b9 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ExactNumberImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ExactNumberImpl.java @@ -1,233 +1,237 @@ -/** - * generated by Xtext 2.12.0 - */ -package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; - -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; -import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ExactNumber; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -/** - * - * An implementation of the model object 'Exact Number'. - * - *

- * The following features are implemented: - *

- * - * - * @generated - */ -public class ExactNumberImpl extends NumberSpecificationImpl implements ExactNumber -{ - /** - * The default value of the '{@link #getExactNumber() Exact Number}' attribute. - * - * - * @see #getExactNumber() - * @generated - * @ordered - */ - protected static final int EXACT_NUMBER_EDEFAULT = 0; - - /** - * The cached value of the '{@link #getExactNumber() Exact Number}' attribute. - * - * - * @see #getExactNumber() - * @generated - * @ordered - */ - protected int exactNumber = EXACT_NUMBER_EDEFAULT; - - /** - * The default value of the '{@link #isExactUnlimited() Exact Unlimited}' attribute. - * - * - * @see #isExactUnlimited() - * @generated - * @ordered - */ - protected static final boolean EXACT_UNLIMITED_EDEFAULT = false; - - /** - * The cached value of the '{@link #isExactUnlimited() Exact Unlimited}' attribute. - * - * - * @see #isExactUnlimited() - * @generated - * @ordered - */ - protected boolean exactUnlimited = EXACT_UNLIMITED_EDEFAULT; - - /** - * - * - * @generated - */ - protected ExactNumberImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.EXACT_NUMBER; - } - - /** - * - * - * @generated - */ - public int getExactNumber() - { - return exactNumber; - } - - /** - * - * - * @generated - */ - public void setExactNumber(int newExactNumber) - { - int oldExactNumber = exactNumber; - exactNumber = newExactNumber; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_NUMBER, oldExactNumber, exactNumber)); - } - - /** - * - * - * @generated - */ - public boolean isExactUnlimited() - { - return exactUnlimited; - } - - /** - * - * - * @generated - */ - public void setExactUnlimited(boolean newExactUnlimited) - { - boolean oldExactUnlimited = exactUnlimited; - exactUnlimited = newExactUnlimited; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_UNLIMITED, oldExactUnlimited, exactUnlimited)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_NUMBER: - return getExactNumber(); - case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_UNLIMITED: - return isExactUnlimited(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_NUMBER: - setExactNumber((Integer)newValue); - return; - case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_UNLIMITED: - setExactUnlimited((Boolean)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_NUMBER: - setExactNumber(EXACT_NUMBER_EDEFAULT); - return; - case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_UNLIMITED: - setExactUnlimited(EXACT_UNLIMITED_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_NUMBER: - return exactNumber != EXACT_NUMBER_EDEFAULT; - case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_UNLIMITED: - return exactUnlimited != EXACT_UNLIMITED_EDEFAULT; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (exactNumber: "); - result.append(exactNumber); - result.append(", exactUnlimited: "); - result.append(exactUnlimited); - result.append(')'); - return result.toString(); - } - -} //ExactNumberImpl +/** + * generated by Xtext 2.16.0 + */ +package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; + +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; +import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ExactNumber; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'Exact Number'. + * + *

+ * The following features are implemented: + *

+ * + * + * @generated + */ +public class ExactNumberImpl extends NumberSpecificationImpl implements ExactNumber +{ + /** + * The default value of the '{@link #getExactNumber() Exact Number}' attribute. + * + * + * @see #getExactNumber() + * @generated + * @ordered + */ + protected static final int EXACT_NUMBER_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getExactNumber() Exact Number}' attribute. + * + * + * @see #getExactNumber() + * @generated + * @ordered + */ + protected int exactNumber = EXACT_NUMBER_EDEFAULT; + + /** + * The default value of the '{@link #isExactUnlimited() Exact Unlimited}' attribute. + * + * + * @see #isExactUnlimited() + * @generated + * @ordered + */ + protected static final boolean EXACT_UNLIMITED_EDEFAULT = false; + + /** + * The cached value of the '{@link #isExactUnlimited() Exact Unlimited}' attribute. + * + * + * @see #isExactUnlimited() + * @generated + * @ordered + */ + protected boolean exactUnlimited = EXACT_UNLIMITED_EDEFAULT; + + /** + * + * + * @generated + */ + protected ExactNumberImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.EXACT_NUMBER; + } + + /** + * + * + * @generated + */ + @Override + public int getExactNumber() + { + return exactNumber; + } + + /** + * + * + * @generated + */ + @Override + public void setExactNumber(int newExactNumber) + { + int oldExactNumber = exactNumber; + exactNumber = newExactNumber; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_NUMBER, oldExactNumber, exactNumber)); + } + + /** + * + * + * @generated + */ + @Override + public boolean isExactUnlimited() + { + return exactUnlimited; + } + + /** + * + * + * @generated + */ + @Override + public void setExactUnlimited(boolean newExactUnlimited) + { + boolean oldExactUnlimited = exactUnlimited; + exactUnlimited = newExactUnlimited; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_UNLIMITED, oldExactUnlimited, exactUnlimited)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_NUMBER: + return getExactNumber(); + case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_UNLIMITED: + return isExactUnlimited(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_NUMBER: + setExactNumber((Integer)newValue); + return; + case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_UNLIMITED: + setExactUnlimited((Boolean)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_NUMBER: + setExactNumber(EXACT_NUMBER_EDEFAULT); + return; + case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_UNLIMITED: + setExactUnlimited(EXACT_UNLIMITED_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_NUMBER: + return exactNumber != EXACT_NUMBER_EDEFAULT; + case ApplicationConfigurationPackage.EXACT_NUMBER__EXACT_UNLIMITED: + return exactUnlimited != EXACT_UNLIMITED_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (exactNumber: "); + result.append(exactNumber); + result.append(", exactUnlimited: "); + result.append(exactUnlimited); + result.append(')'); + return result.toString(); + } + +} //ExactNumberImpl -- cgit v1.2.3-70-g09d2