Skip to main content
summaryrefslogtreecommitdiffstats
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_DesignModel/SRM/SW_Interaction/impl/SwCommunicationResourceImpl.java')
-rw-r--r--deprecated/deprecated-plugins/marte.deprecated/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/impl/SwCommunicationResourceImpl.java582
1 files changed, 0 insertions, 582 deletions
diff --git a/deprecated/deprecated-plugins/marte.deprecated/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/impl/SwCommunicationResourceImpl.java b/deprecated/deprecated-plugins/marte.deprecated/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/impl/SwCommunicationResourceImpl.java
deleted file mode 100644
index c7b1504231a..00000000000
--- a/deprecated/deprecated-plugins/marte.deprecated/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_DesignModel/SRM/SW_Interaction/impl/SwCommunicationResourceImpl.java
+++ /dev/null
@@ -1,582 +0,0 @@
-/*****************************************************************************
- * 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_DesignModel.SRM.SW_Interaction.impl;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.common.util.EList;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-
-import org.eclipse.emf.ecore.util.EDataTypeUniqueEList;
-
-import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SW_InteractionPackage;
-import org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.SwCommunicationResource;
-
-import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationMedia;
-import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage;
-import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.ProcessingResource;
-import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.Scheduler;
-
-import org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.TransmModeKind;
-
-import org.eclipse.uml2.uml.Connector;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Sw Communication Resource</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SwCommunicationResourceImpl#getSpeedFactor <em>Speed Factor</em>}</li>
- * <li>{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SwCommunicationResourceImpl#getMainScheduler <em>Main Scheduler</em>}</li>
- * <li>{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SwCommunicationResourceImpl#getElementSize <em>Element Size</em>}</li>
- * <li>{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SwCommunicationResourceImpl#getBase_Connector <em>Base Connector</em>}</li>
- * <li>{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SwCommunicationResourceImpl#getTransmMode <em>Transm Mode</em>}</li>
- * <li>{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SwCommunicationResourceImpl#getBlockT <em>Block T</em>}</li>
- * <li>{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SwCommunicationResourceImpl#getPacketT <em>Packet T</em>}</li>
- * <li>{@link org.eclipse.papyrus.MARTE.MARTE_DesignModel.SRM.SW_Interaction.impl.SwCommunicationResourceImpl#getCapacity <em>Capacity</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public abstract class SwCommunicationResourceImpl extends SwInteractionResourceImpl implements SwCommunicationResource {
- /**
- * The default value of the '{@link #getSpeedFactor() <em>Speed Factor</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getSpeedFactor()
- * @generated
- * @ordered
- */
- protected static final String SPEED_FACTOR_EDEFAULT = "1.0";
-
- /**
- * The cached value of the '{@link #getSpeedFactor() <em>Speed Factor</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getSpeedFactor()
- * @generated
- * @ordered
- */
- protected String speedFactor = SPEED_FACTOR_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getMainScheduler() <em>Main Scheduler</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getMainScheduler()
- * @generated
- * @ordered
- */
- protected Scheduler mainScheduler;
-
- /**
- * The default value of the '{@link #getElementSize() <em>Element Size</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getElementSize()
- * @generated
- * @ordered
- */
- protected static final String ELEMENT_SIZE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getElementSize() <em>Element Size</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getElementSize()
- * @generated
- * @ordered
- */
- protected String elementSize = ELEMENT_SIZE_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getBase_Connector() <em>Base Connector</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getBase_Connector()
- * @generated
- * @ordered
- */
- protected Connector base_Connector;
-
- /**
- * The default value of the '{@link #getTransmMode() <em>Transm Mode</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTransmMode()
- * @generated
- * @ordered
- */
- protected static final TransmModeKind TRANSM_MODE_EDEFAULT = TransmModeKind.SIMPLEX;
-
- /**
- * The cached value of the '{@link #getTransmMode() <em>Transm Mode</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTransmMode()
- * @generated
- * @ordered
- */
- protected TransmModeKind transmMode = TRANSM_MODE_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getBlockT() <em>Block T</em>}' attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getBlockT()
- * @generated
- * @ordered
- */
- protected EList<String> blockT;
-
- /**
- * The cached value of the '{@link #getPacketT() <em>Packet T</em>}' attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getPacketT()
- * @generated
- * @ordered
- */
- protected EList<String> packetT;
-
- /**
- * The cached value of the '{@link #getCapacity() <em>Capacity</em>}' attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getCapacity()
- * @generated
- * @ordered
- */
- protected EList<String> capacity;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected SwCommunicationResourceImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return SW_InteractionPackage.Literals.SW_COMMUNICATION_RESOURCE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getSpeedFactor() {
- return speedFactor;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setSpeedFactor(String newSpeedFactor) {
- String oldSpeedFactor = speedFactor;
- speedFactor = newSpeedFactor;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__SPEED_FACTOR, oldSpeedFactor, speedFactor));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Scheduler getMainScheduler() {
- if (mainScheduler != null && mainScheduler.eIsProxy()) {
- InternalEObject oldMainScheduler = (InternalEObject)mainScheduler;
- mainScheduler = (Scheduler)eResolveProxy(oldMainScheduler);
- if (mainScheduler != oldMainScheduler) {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__MAIN_SCHEDULER, oldMainScheduler, mainScheduler));
- }
- }
- return mainScheduler;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Scheduler basicGetMainScheduler() {
- return mainScheduler;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setMainScheduler(Scheduler newMainScheduler) {
- Scheduler oldMainScheduler = mainScheduler;
- mainScheduler = newMainScheduler;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__MAIN_SCHEDULER, oldMainScheduler, mainScheduler));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getElementSize() {
- return elementSize;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setElementSize(String newElementSize) {
- String oldElementSize = elementSize;
- elementSize = newElementSize;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__ELEMENT_SIZE, oldElementSize, elementSize));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Connector getBase_Connector() {
- if (base_Connector != null && base_Connector.eIsProxy()) {
- InternalEObject oldBase_Connector = (InternalEObject)base_Connector;
- base_Connector = (Connector)eResolveProxy(oldBase_Connector);
- if (base_Connector != oldBase_Connector) {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__BASE_CONNECTOR, oldBase_Connector, base_Connector));
- }
- }
- return base_Connector;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Connector basicGetBase_Connector() {
- return base_Connector;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setBase_Connector(Connector newBase_Connector) {
- Connector oldBase_Connector = base_Connector;
- base_Connector = newBase_Connector;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__BASE_CONNECTOR, oldBase_Connector, base_Connector));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public TransmModeKind getTransmMode() {
- return transmMode;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setTransmMode(TransmModeKind newTransmMode) {
- TransmModeKind oldTransmMode = transmMode;
- transmMode = newTransmMode == null ? TRANSM_MODE_EDEFAULT : newTransmMode;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__TRANSM_MODE, oldTransmMode, transmMode));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<String> getBlockT() {
- if (blockT == null) {
- blockT = new EDataTypeUniqueEList<String>(String.class, this, SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__BLOCK_T);
- }
- return blockT;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<String> getPacketT() {
- if (packetT == null) {
- packetT = new EDataTypeUniqueEList<String>(String.class, this, SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__PACKET_T);
- }
- return packetT;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<String> getCapacity() {
- if (capacity == null) {
- capacity = new EDataTypeUniqueEList<String>(String.class, this, SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__CAPACITY);
- }
- return capacity;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__SPEED_FACTOR:
- return getSpeedFactor();
- case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__MAIN_SCHEDULER:
- if (resolve) return getMainScheduler();
- return basicGetMainScheduler();
- case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__ELEMENT_SIZE:
- return getElementSize();
- case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__BASE_CONNECTOR:
- if (resolve) return getBase_Connector();
- return basicGetBase_Connector();
- case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__TRANSM_MODE:
- return getTransmMode();
- case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__BLOCK_T:
- return getBlockT();
- case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__PACKET_T:
- return getPacketT();
- case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__CAPACITY:
- return getCapacity();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__SPEED_FACTOR:
- setSpeedFactor((String)newValue);
- return;
- case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__MAIN_SCHEDULER:
- setMainScheduler((Scheduler)newValue);
- return;
- case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__ELEMENT_SIZE:
- setElementSize((String)newValue);
- return;
- case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__BASE_CONNECTOR:
- setBase_Connector((Connector)newValue);
- return;
- case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__TRANSM_MODE:
- setTransmMode((TransmModeKind)newValue);
- return;
- case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__BLOCK_T:
- getBlockT().clear();
- getBlockT().addAll((Collection<? extends String>)newValue);
- return;
- case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__PACKET_T:
- getPacketT().clear();
- getPacketT().addAll((Collection<? extends String>)newValue);
- return;
- case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__CAPACITY:
- getCapacity().clear();
- getCapacity().addAll((Collection<? extends String>)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__SPEED_FACTOR:
- setSpeedFactor(SPEED_FACTOR_EDEFAULT);
- return;
- case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__MAIN_SCHEDULER:
- setMainScheduler((Scheduler)null);
- return;
- case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__ELEMENT_SIZE:
- setElementSize(ELEMENT_SIZE_EDEFAULT);
- return;
- case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__BASE_CONNECTOR:
- setBase_Connector((Connector)null);
- return;
- case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__TRANSM_MODE:
- setTransmMode(TRANSM_MODE_EDEFAULT);
- return;
- case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__BLOCK_T:
- getBlockT().clear();
- return;
- case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__PACKET_T:
- getPacketT().clear();
- return;
- case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__CAPACITY:
- getCapacity().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__SPEED_FACTOR:
- return SPEED_FACTOR_EDEFAULT == null ? speedFactor != null : !SPEED_FACTOR_EDEFAULT.equals(speedFactor);
- case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__MAIN_SCHEDULER:
- return mainScheduler != null;
- case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__ELEMENT_SIZE:
- return ELEMENT_SIZE_EDEFAULT == null ? elementSize != null : !ELEMENT_SIZE_EDEFAULT.equals(elementSize);
- case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__BASE_CONNECTOR:
- return base_Connector != null;
- case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__TRANSM_MODE:
- return transmMode != TRANSM_MODE_EDEFAULT;
- case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__BLOCK_T:
- return blockT != null && !blockT.isEmpty();
- case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__PACKET_T:
- return packetT != null && !packetT.isEmpty();
- case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__CAPACITY:
- return capacity != null && !capacity.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) {
- if (baseClass == ProcessingResource.class) {
- switch (derivedFeatureID) {
- case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__SPEED_FACTOR: return GRMPackage.PROCESSING_RESOURCE__SPEED_FACTOR;
- case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__MAIN_SCHEDULER: return GRMPackage.PROCESSING_RESOURCE__MAIN_SCHEDULER;
- default: return -1;
- }
- }
- if (baseClass == CommunicationMedia.class) {
- switch (derivedFeatureID) {
- case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__ELEMENT_SIZE: return GRMPackage.COMMUNICATION_MEDIA__ELEMENT_SIZE;
- case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__BASE_CONNECTOR: return GRMPackage.COMMUNICATION_MEDIA__BASE_CONNECTOR;
- case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__TRANSM_MODE: return GRMPackage.COMMUNICATION_MEDIA__TRANSM_MODE;
- case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__BLOCK_T: return GRMPackage.COMMUNICATION_MEDIA__BLOCK_T;
- case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__PACKET_T: return GRMPackage.COMMUNICATION_MEDIA__PACKET_T;
- case SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__CAPACITY: return GRMPackage.COMMUNICATION_MEDIA__CAPACITY;
- default: return -1;
- }
- }
- return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) {
- if (baseClass == ProcessingResource.class) {
- switch (baseFeatureID) {
- case GRMPackage.PROCESSING_RESOURCE__SPEED_FACTOR: return SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__SPEED_FACTOR;
- case GRMPackage.PROCESSING_RESOURCE__MAIN_SCHEDULER: return SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__MAIN_SCHEDULER;
- default: return -1;
- }
- }
- if (baseClass == CommunicationMedia.class) {
- switch (baseFeatureID) {
- case GRMPackage.COMMUNICATION_MEDIA__ELEMENT_SIZE: return SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__ELEMENT_SIZE;
- case GRMPackage.COMMUNICATION_MEDIA__BASE_CONNECTOR: return SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__BASE_CONNECTOR;
- case GRMPackage.COMMUNICATION_MEDIA__TRANSM_MODE: return SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__TRANSM_MODE;
- case GRMPackage.COMMUNICATION_MEDIA__BLOCK_T: return SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__BLOCK_T;
- case GRMPackage.COMMUNICATION_MEDIA__PACKET_T: return SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__PACKET_T;
- case GRMPackage.COMMUNICATION_MEDIA__CAPACITY: return SW_InteractionPackage.SW_COMMUNICATION_RESOURCE__CAPACITY;
- default: return -1;
- }
- }
- return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (speedFactor: ");
- result.append(speedFactor);
- result.append(", elementSize: ");
- result.append(elementSize);
- result.append(", transmMode: ");
- result.append(transmMode);
- result.append(", blockT: ");
- result.append(blockT);
- result.append(", packetT: ");
- result.append(packetT);
- result.append(", capacity: ");
- result.append(capacity);
- result.append(')');
- return result.toString();
- }
-
-} //SwCommunicationResourceImpl

Back to the top