All Downloads are FREE. Search and download functionalities are using the official Maven repository.

kieker.model.analysismodel.statistics.impl.LongMeasurementImpl Maven / Gradle / Ivy

/**
 */
package kieker.model.analysismodel.statistics.impl;

import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;

import kieker.model.analysismodel.statistics.LongMeasurement;
import kieker.model.analysismodel.statistics.StatisticsPackage;

/**
 * 
 * An implementation of the model object 'Long Measurement'.
 * 
 * 

* The following features are implemented: *

*
    *
  • {@link kieker.model.analysismodel.statistics.impl.LongMeasurementImpl#getValue Value}
  • *
* * @generated */ public class LongMeasurementImpl extends ScalarMeasurementImpl implements LongMeasurement { /** * The default value of the '{@link #getValue() Value}' attribute. * * * * @see #getValue() * @generated * @ordered */ protected static final long VALUE_EDEFAULT = 0L; /** * The cached value of the '{@link #getValue() Value}' attribute. * * * * @see #getValue() * @generated * @ordered */ protected long value = VALUE_EDEFAULT; /** * * * * @generated */ protected LongMeasurementImpl() { super(); } /** * * * * @generated */ @Override protected EClass eStaticClass() { return StatisticsPackage.Literals.LONG_MEASUREMENT; } /** * * * * @generated */ @Override public long getValue() { return this.value; } /** * * * * @generated */ @Override public void setValue(final long newValue) { final long oldValue = this.value; this.value = newValue; if (this.eNotificationRequired()) { this.eNotify(new ENotificationImpl(this, Notification.SET, StatisticsPackage.LONG_MEASUREMENT__VALUE, oldValue, this.value)); } } /** * * * * @generated */ @Override public Object eGet(final int featureID, final boolean resolve, final boolean coreType) { switch (featureID) { case StatisticsPackage.LONG_MEASUREMENT__VALUE: return this.getValue(); } return super.eGet(featureID, resolve, coreType); } /** * * * * @generated */ @Override public void eSet(final int featureID, final Object newValue) { switch (featureID) { case StatisticsPackage.LONG_MEASUREMENT__VALUE: this.setValue((Long) newValue); return; } super.eSet(featureID, newValue); } /** * * * * @generated */ @Override public void eUnset(final int featureID) { switch (featureID) { case StatisticsPackage.LONG_MEASUREMENT__VALUE: this.setValue(VALUE_EDEFAULT); return; } super.eUnset(featureID); } /** * * * * @generated */ @Override public boolean eIsSet(final int featureID) { switch (featureID) { case StatisticsPackage.LONG_MEASUREMENT__VALUE: return this.value != VALUE_EDEFAULT; } return super.eIsSet(featureID); } /** * * * * @generated */ @Override public String toString() { if (this.eIsProxy()) { return super.toString(); } final StringBuilder result = new StringBuilder(super.toString()); result.append(" (value: "); result.append(this.value); result.append(')'); return result.toString(); } } // LongMeasurementImpl




© 2015 - 2025 Weber Informatics LLC | Privacy Policy