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/RuntimeEntryImpl.java | 356 +++++++++++---------- 1 file changed, 179 insertions(+), 177 deletions(-) (limited to 'Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/RuntimeEntryImpl.java') diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/RuntimeEntryImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/RuntimeEntryImpl.java index 9abb1448..c6e4f885 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/RuntimeEntryImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/RuntimeEntryImpl.java @@ -1,177 +1,179 @@ -/** - * 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.RuntimeEntry; - -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 'Runtime Entry'. - * - *

- * The following features are implemented: - *

- * - * - * @generated - */ -public class RuntimeEntryImpl extends ConfigEntryImpl implements RuntimeEntry -{ - /** - * The default value of the '{@link #getMillisecLimit() Millisec Limit}' attribute. - * - * - * @see #getMillisecLimit() - * @generated - * @ordered - */ - protected static final int MILLISEC_LIMIT_EDEFAULT = 0; - - /** - * The cached value of the '{@link #getMillisecLimit() Millisec Limit}' attribute. - * - * - * @see #getMillisecLimit() - * @generated - * @ordered - */ - protected int millisecLimit = MILLISEC_LIMIT_EDEFAULT; - - /** - * - * - * @generated - */ - protected RuntimeEntryImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ApplicationConfigurationPackage.Literals.RUNTIME_ENTRY; - } - - /** - * - * - * @generated - */ - public int getMillisecLimit() - { - return millisecLimit; - } - - /** - * - * - * @generated - */ - public void setMillisecLimit(int newMillisecLimit) - { - int oldMillisecLimit = millisecLimit; - millisecLimit = newMillisecLimit; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.RUNTIME_ENTRY__MILLISEC_LIMIT, oldMillisecLimit, millisecLimit)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ApplicationConfigurationPackage.RUNTIME_ENTRY__MILLISEC_LIMIT: - return getMillisecLimit(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ApplicationConfigurationPackage.RUNTIME_ENTRY__MILLISEC_LIMIT: - setMillisecLimit((Integer)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.RUNTIME_ENTRY__MILLISEC_LIMIT: - setMillisecLimit(MILLISEC_LIMIT_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ApplicationConfigurationPackage.RUNTIME_ENTRY__MILLISEC_LIMIT: - return millisecLimit != MILLISEC_LIMIT_EDEFAULT; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (millisecLimit: "); - result.append(millisecLimit); - result.append(')'); - return result.toString(); - } - -} //RuntimeEntryImpl +/** + * 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.RuntimeEntry; + +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 'Runtime Entry'. + * + *

+ * The following features are implemented: + *

+ * + * + * @generated + */ +public class RuntimeEntryImpl extends ConfigEntryImpl implements RuntimeEntry +{ + /** + * The default value of the '{@link #getMillisecLimit() Millisec Limit}' attribute. + * + * + * @see #getMillisecLimit() + * @generated + * @ordered + */ + protected static final int MILLISEC_LIMIT_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getMillisecLimit() Millisec Limit}' attribute. + * + * + * @see #getMillisecLimit() + * @generated + * @ordered + */ + protected int millisecLimit = MILLISEC_LIMIT_EDEFAULT; + + /** + * + * + * @generated + */ + protected RuntimeEntryImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ApplicationConfigurationPackage.Literals.RUNTIME_ENTRY; + } + + /** + * + * + * @generated + */ + @Override + public int getMillisecLimit() + { + return millisecLimit; + } + + /** + * + * + * @generated + */ + @Override + public void setMillisecLimit(int newMillisecLimit) + { + int oldMillisecLimit = millisecLimit; + millisecLimit = newMillisecLimit; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.RUNTIME_ENTRY__MILLISEC_LIMIT, oldMillisecLimit, millisecLimit)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case ApplicationConfigurationPackage.RUNTIME_ENTRY__MILLISEC_LIMIT: + return getMillisecLimit(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ApplicationConfigurationPackage.RUNTIME_ENTRY__MILLISEC_LIMIT: + setMillisecLimit((Integer)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.RUNTIME_ENTRY__MILLISEC_LIMIT: + setMillisecLimit(MILLISEC_LIMIT_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case ApplicationConfigurationPackage.RUNTIME_ENTRY__MILLISEC_LIMIT: + return millisecLimit != MILLISEC_LIMIT_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (millisecLimit: "); + result.append(millisecLimit); + result.append(')'); + return result.toString(); + } + +} //RuntimeEntryImpl -- cgit v1.2.3-70-g09d2