/** */ package hu.bme.mit.inf.dslreasoner.logic.model.logicresult.impl; import hu.bme.mit.inf.dslreasoner.logic.model.logicresult.LogicresultPackage; import hu.bme.mit.inf.dslreasoner.logic.model.logicresult.RealStatisticEntry; 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 'Real Statistic Entry'. * *

* The following features are implemented: *

* * * @generated */ public class RealStatisticEntryImpl extends StatisticEntryImpl implements RealStatisticEntry { /** * The default value of the '{@link #getValue() Value}' attribute. * * * @see #getValue() * @generated * @ordered */ protected static final double VALUE_EDEFAULT = 0.0; /** * The cached value of the '{@link #getValue() Value}' attribute. * * * @see #getValue() * @generated * @ordered */ protected double value = VALUE_EDEFAULT; /** * * * @generated */ protected RealStatisticEntryImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return LogicresultPackage.Literals.REAL_STATISTIC_ENTRY; } /** * * * @generated */ public double getValue() { return value; } /** * * * @generated */ public void setValue(double newValue) { double oldValue = value; value = newValue; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, LogicresultPackage.REAL_STATISTIC_ENTRY__VALUE, oldValue, value)); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case LogicresultPackage.REAL_STATISTIC_ENTRY__VALUE: return getValue(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case LogicresultPackage.REAL_STATISTIC_ENTRY__VALUE: setValue((Double)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case LogicresultPackage.REAL_STATISTIC_ENTRY__VALUE: setValue(VALUE_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case LogicresultPackage.REAL_STATISTIC_ENTRY__VALUE: return value != VALUE_EDEFAULT; } return super.eIsSet(featureID); } /** * * * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (value: "); result.append(value); result.append(')'); return result.toString(); } } //RealStatisticEntryImpl