Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'deprecated/deprecated-plugins/marte.deprecated/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/impl/PaLogicalResourceImpl.java')
-rw-r--r--deprecated/deprecated-plugins/marte.deprecated/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/impl/PaLogicalResourceImpl.java283
1 files changed, 283 insertions, 0 deletions
diff --git a/deprecated/deprecated-plugins/marte.deprecated/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/impl/PaLogicalResourceImpl.java b/deprecated/deprecated-plugins/marte.deprecated/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/impl/PaLogicalResourceImpl.java
new file mode 100644
index 00000000000..e040940cf61
--- /dev/null
+++ b/deprecated/deprecated-plugins/marte.deprecated/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_AnalysisModel/PAM/impl/PaLogicalResourceImpl.java
@@ -0,0 +1,283 @@
+/*****************************************************************************
+ * Copyright (c) 2010 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Chokri MRAIDHA (CEA LIST) chokri.mraidha@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PAMPackage;
+import org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.PaLogicalResource;
+
+import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.ResourceImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Pa Logical Resource</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PaLogicalResourceImpl#getUtilization <em>Utilization</em>}</li>
+ * <li>{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PaLogicalResourceImpl#getThroughput <em>Throughput</em>}</li>
+ * <li>{@link org.eclipse.papyrus.MARTE.MARTE_AnalysisModel.PAM.impl.PaLogicalResourceImpl#getPoolSize <em>Pool Size</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class PaLogicalResourceImpl extends ResourceImpl implements PaLogicalResource {
+ /**
+ * The default value of the '{@link #getUtilization() <em>Utilization</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getUtilization()
+ * @generated
+ * @ordered
+ */
+ protected static final String UTILIZATION_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getUtilization() <em>Utilization</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getUtilization()
+ * @generated
+ * @ordered
+ */
+ protected String utilization = UTILIZATION_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getThroughput() <em>Throughput</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getThroughput()
+ * @generated
+ * @ordered
+ */
+ protected static final String THROUGHPUT_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getThroughput() <em>Throughput</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getThroughput()
+ * @generated
+ * @ordered
+ */
+ protected String throughput = THROUGHPUT_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getPoolSize() <em>Pool Size</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getPoolSize()
+ * @generated
+ * @ordered
+ */
+ protected static final String POOL_SIZE_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getPoolSize() <em>Pool Size</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getPoolSize()
+ * @generated
+ * @ordered
+ */
+ protected String poolSize = POOL_SIZE_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected PaLogicalResourceImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return PAMPackage.Literals.PA_LOGICAL_RESOURCE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getUtilization() {
+ return utilization;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setUtilization(String newUtilization) {
+ String oldUtilization = utilization;
+ utilization = newUtilization;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PAMPackage.PA_LOGICAL_RESOURCE__UTILIZATION, oldUtilization, utilization));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getThroughput() {
+ return throughput;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setThroughput(String newThroughput) {
+ String oldThroughput = throughput;
+ throughput = newThroughput;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PAMPackage.PA_LOGICAL_RESOURCE__THROUGHPUT, oldThroughput, throughput));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getPoolSize() {
+ return poolSize;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setPoolSize(String newPoolSize) {
+ String oldPoolSize = poolSize;
+ poolSize = newPoolSize;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PAMPackage.PA_LOGICAL_RESOURCE__POOL_SIZE, oldPoolSize, poolSize));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case PAMPackage.PA_LOGICAL_RESOURCE__UTILIZATION:
+ return getUtilization();
+ case PAMPackage.PA_LOGICAL_RESOURCE__THROUGHPUT:
+ return getThroughput();
+ case PAMPackage.PA_LOGICAL_RESOURCE__POOL_SIZE:
+ return getPoolSize();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case PAMPackage.PA_LOGICAL_RESOURCE__UTILIZATION:
+ setUtilization((String)newValue);
+ return;
+ case PAMPackage.PA_LOGICAL_RESOURCE__THROUGHPUT:
+ setThroughput((String)newValue);
+ return;
+ case PAMPackage.PA_LOGICAL_RESOURCE__POOL_SIZE:
+ setPoolSize((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case PAMPackage.PA_LOGICAL_RESOURCE__UTILIZATION:
+ setUtilization(UTILIZATION_EDEFAULT);
+ return;
+ case PAMPackage.PA_LOGICAL_RESOURCE__THROUGHPUT:
+ setThroughput(THROUGHPUT_EDEFAULT);
+ return;
+ case PAMPackage.PA_LOGICAL_RESOURCE__POOL_SIZE:
+ setPoolSize(POOL_SIZE_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case PAMPackage.PA_LOGICAL_RESOURCE__UTILIZATION:
+ return UTILIZATION_EDEFAULT == null ? utilization != null : !UTILIZATION_EDEFAULT.equals(utilization);
+ case PAMPackage.PA_LOGICAL_RESOURCE__THROUGHPUT:
+ return THROUGHPUT_EDEFAULT == null ? throughput != null : !THROUGHPUT_EDEFAULT.equals(throughput);
+ case PAMPackage.PA_LOGICAL_RESOURCE__POOL_SIZE:
+ return POOL_SIZE_EDEFAULT == null ? poolSize != null : !POOL_SIZE_EDEFAULT.equals(poolSize);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (utilization: ");
+ result.append(utilization);
+ result.append(", throughput: ");
+ result.append(throughput);
+ result.append(", poolSize: ");
+ result.append(poolSize);
+ result.append(')');
+ return result.toString();
+ }
+
+} //PaLogicalResourceImpl

Back to the top