kieker.model.analysismodel.statistics.impl.VectorMeasurementImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kieker Show documentation
Show all versions of kieker Show documentation
Kieker: Application Performance Monitoring and Dynamic Software Analysis
/**
*/
package kieker.model.analysismodel.statistics.impl;
import java.util.Collection;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
import kieker.model.analysismodel.statistics.ScalarMeasurement;
import kieker.model.analysismodel.statistics.StatisticsPackage;
import kieker.model.analysismodel.statistics.VectorMeasurement;
/**
*
* An implementation of the model object 'Vector Measurement'.
*
*
* The following features are implemented:
*
*
* - {@link kieker.model.analysismodel.statistics.impl.VectorMeasurementImpl#getValues Values}
*
*
* @generated
*/
public class VectorMeasurementImpl extends MeasurementImpl implements VectorMeasurement {
/**
* The cached value of the '{@link #getValues() Values}' containment reference list.
*
*
*
* @see #getValues()
* @generated
* @ordered
*/
protected EList values;
/**
*
*
*
* @generated
*/
protected VectorMeasurementImpl() {
super();
}
/**
*
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return StatisticsPackage.Literals.VECTOR_MEASUREMENT;
}
/**
*
*
*
* @generated
*/
@Override
public EList getValues() {
if (this.values == null) {
this.values = new EObjectContainmentEList<>(ScalarMeasurement.class, this, StatisticsPackage.VECTOR_MEASUREMENT__VALUES);
}
return this.values;
}
/**
*
*
*
* @generated
*/
@Override
public NotificationChain eInverseRemove(final InternalEObject otherEnd, final int featureID, final NotificationChain msgs) {
switch (featureID) {
case StatisticsPackage.VECTOR_MEASUREMENT__VALUES:
return ((InternalEList>) this.getValues()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
*
*
*
* @generated
*/
@Override
public Object eGet(final int featureID, final boolean resolve, final boolean coreType) {
switch (featureID) {
case StatisticsPackage.VECTOR_MEASUREMENT__VALUES:
return this.getValues();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
*
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(final int featureID, final Object newValue) {
switch (featureID) {
case StatisticsPackage.VECTOR_MEASUREMENT__VALUES:
this.getValues().clear();
this.getValues().addAll((Collection extends ScalarMeasurement>) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
*
* @generated
*/
@Override
public void eUnset(final int featureID) {
switch (featureID) {
case StatisticsPackage.VECTOR_MEASUREMENT__VALUES:
this.getValues().clear();
return;
}
super.eUnset(featureID);
}
/**
*
*
*
* @generated
*/
@Override
public boolean eIsSet(final int featureID) {
switch (featureID) {
case StatisticsPackage.VECTOR_MEASUREMENT__VALUES:
return (this.values != null) && !this.values.isEmpty();
}
return super.eIsSet(featureID);
}
} // VectorMeasurementImpl
© 2015 - 2024 Weber Informatics LLC | Privacy Policy