EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][de.uka.ipd.sdq.pcm.seff.impl]

COVERAGE SUMMARY FOR SOURCE FILE [ExternalCallActionImpl.java]

nameclass, %method, %block, %line, %
ExternalCallActionImpl.java0%   (0/1)0%   (0/24)0%   (0/581)0%   (0/155)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ExternalCallActionImpl0%   (0/1)0%   (0/24)0%   (0/581)0%   (0/155)
<static initializer> 0%   (0/1)0%   (0/3)0%   (0/2)
ExternalCallActionImpl (): void 0%   (0/1)0%   (0/6)0%   (0/3)
SignatureBelongsToRole (DiagnosticChain, Map): boolean 0%   (0/1)0%   (0/62)0%   (0/17)
basicGetCalledService_ExternalService (): OperationSignature 0%   (0/1)0%   (0/3)0%   (0/1)
basicGetRole_ExternalService (): OperationRequiredRole 0%   (0/1)0%   (0/3)0%   (0/1)
eBaseStructuralFeatureID (int, Class): int 0%   (0/1)0%   (0/32)0%   (0/13)
eDerivedStructuralFeatureID (int, Class): int 0%   (0/1)0%   (0/32)0%   (0/13)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/37)0%   (0/10)
eInverseAdd (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/22)0%   (0/4)
eInverseRemove (InternalEObject, int, NotificationChain): NotificationChain 0%   (0/1)0%   (0/22)0%   (0/4)
eIsSet (int): boolean 0%   (0/1)0%   (0/60)0%   (0/8)
eSet (int, Object): void 0%   (0/1)0%   (0/53)0%   (0/18)
eStaticClass (): EClass 0%   (0/1)0%   (0/2)0%   (0/1)
eUnset (int): void 0%   (0/1)0%   (0/30)0%   (0/15)
getCalledService_ExternalService (): OperationSignature 0%   (0/1)0%   (0/38)0%   (0/7)
getFailureTypes_FailureHandlingEntity (): EList 0%   (0/1)0%   (0/14)0%   (0/3)
getInputVariableUsages__CallAction (): EList 0%   (0/1)0%   (0/15)0%   (0/3)
getRetryCount (): int 0%   (0/1)0%   (0/3)0%   (0/1)
getReturnVariableUsage__CallReturnAction (): EList 0%   (0/1)0%   (0/15)0%   (0/3)
getRole_ExternalService (): OperationRequiredRole 0%   (0/1)0%   (0/38)0%   (0/7)
setCalledService_ExternalService (OperationSignature): void 0%   (0/1)0%   (0/21)0%   (0/5)
setRetryCount (int): void 0%   (0/1)0%   (0/21)0%   (0/5)
setRole_ExternalService (OperationRequiredRole): void 0%   (0/1)0%   (0/21)0%   (0/5)
toString (): String 0%   (0/1)0%   (0/28)0%   (0/6)

1/**
2 * Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany
3 *
4 * $Id$
5 */
6package de.uka.ipd.sdq.pcm.seff.impl;
7 
8import java.util.Collection;
9import java.util.Map;
10 
11import org.eclipse.emf.common.notify.Notification;
12import org.eclipse.emf.common.notify.NotificationChain;
13import org.eclipse.emf.common.util.BasicDiagnostic;
14import org.eclipse.emf.common.util.Diagnostic;
15import org.eclipse.emf.common.util.DiagnosticChain;
16import org.eclipse.emf.common.util.EList;
17import org.eclipse.emf.ecore.EClass;
18import org.eclipse.emf.ecore.InternalEObject;
19import org.eclipse.emf.ecore.impl.ENotificationImpl;
20import org.eclipse.emf.ecore.plugin.EcorePlugin;
21import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList;
22import org.eclipse.emf.ecore.util.EObjectResolvingEList;
23import org.eclipse.emf.ecore.util.EObjectValidator;
24import org.eclipse.emf.ecore.util.InternalEList;
25import org.eclipse.ocl.ParserException;
26import org.eclipse.ocl.ecore.Constraint;
27import org.eclipse.ocl.ecore.OCL;
28 
29import de.uka.ipd.sdq.pcm.parameter.ParameterPackage;
30import de.uka.ipd.sdq.pcm.parameter.VariableUsage;
31import de.uka.ipd.sdq.pcm.reliability.FailureType;
32import de.uka.ipd.sdq.pcm.repository.OperationRequiredRole;
33import de.uka.ipd.sdq.pcm.repository.OperationSignature;
34import de.uka.ipd.sdq.pcm.seff.CallAction;
35import de.uka.ipd.sdq.pcm.seff.CallReturnAction;
36import de.uka.ipd.sdq.pcm.seff.ExternalCallAction;
37import de.uka.ipd.sdq.pcm.seff.SeffPackage;
38import de.uka.ipd.sdq.pcm.seff.seff_reliability.FailureHandlingEntity;
39import de.uka.ipd.sdq.pcm.seff.seff_reliability.Seff_reliabilityPackage;
40import de.uka.ipd.sdq.pcm.seff.util.SeffValidator;
41 
42/**
43 * <!-- begin-user-doc -->
44 * An implementation of the model object '<em><b>External Call Action</b></em>'.
45 * <!-- end-user-doc -->
46 * <p>
47 * The following features are implemented:
48 * <ul>
49 *   <li>{@link de.uka.ipd.sdq.pcm.seff.impl.ExternalCallActionImpl#getInputVariableUsages__CallAction <em>Input Variable Usages Call Action</em>}</li>
50 *   <li>{@link de.uka.ipd.sdq.pcm.seff.impl.ExternalCallActionImpl#getReturnVariableUsage__CallReturnAction <em>Return Variable Usage Call Return Action</em>}</li>
51 *   <li>{@link de.uka.ipd.sdq.pcm.seff.impl.ExternalCallActionImpl#getFailureTypes_FailureHandlingEntity <em>Failure Types Failure Handling Entity</em>}</li>
52 *   <li>{@link de.uka.ipd.sdq.pcm.seff.impl.ExternalCallActionImpl#getCalledService_ExternalService <em>Called Service External Service</em>}</li>
53 *   <li>{@link de.uka.ipd.sdq.pcm.seff.impl.ExternalCallActionImpl#getRole_ExternalService <em>Role External Service</em>}</li>
54 *   <li>{@link de.uka.ipd.sdq.pcm.seff.impl.ExternalCallActionImpl#getRetryCount <em>Retry Count</em>}</li>
55 * </ul>
56 * </p>
57 *
58 * @generated
59 */
60public class ExternalCallActionImpl extends AbstractActionImpl implements ExternalCallAction {
61        /**
62         * <!-- begin-user-doc -->
63         * <!-- end-user-doc -->
64         * @generated
65         */
66        public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany";
67 
68        /**
69         * The cached value of the '{@link #getInputVariableUsages__CallAction() <em>Input Variable Usages Call Action</em>}' containment reference list.
70         * <!-- begin-user-doc -->
71         * <!-- end-user-doc -->
72         * @see #getInputVariableUsages__CallAction()
73         * @generated
74         * @ordered
75         */
76        protected EList<VariableUsage> inputVariableUsages__CallAction;
77 
78        /**
79         * The cached value of the '{@link #getReturnVariableUsage__CallReturnAction() <em>Return Variable Usage Call Return Action</em>}' containment reference list.
80         * <!-- begin-user-doc -->
81         * <!-- end-user-doc -->
82         * @see #getReturnVariableUsage__CallReturnAction()
83         * @generated
84         * @ordered
85         */
86        protected EList<VariableUsage> returnVariableUsage__CallReturnAction;
87 
88        /**
89         * The cached value of the '{@link #getFailureTypes_FailureHandlingEntity() <em>Failure Types Failure Handling Entity</em>}' reference list.
90         * <!-- begin-user-doc -->
91         * <!-- end-user-doc -->
92         * @see #getFailureTypes_FailureHandlingEntity()
93         * @generated
94         * @ordered
95         */
96        protected EList<FailureType> failureTypes_FailureHandlingEntity;
97 
98        /**
99         * The cached value of the '{@link #getCalledService_ExternalService() <em>Called Service External Service</em>}' reference.
100         * <!-- begin-user-doc -->
101         * <!-- end-user-doc -->
102         * @see #getCalledService_ExternalService()
103         * @generated
104         * @ordered
105         */
106        protected OperationSignature calledService_ExternalService;
107 
108        /**
109         * The cached value of the '{@link #getRole_ExternalService() <em>Role External Service</em>}' reference.
110         * <!-- begin-user-doc -->
111         * <!-- end-user-doc -->
112         * @see #getRole_ExternalService()
113         * @generated
114         * @ordered
115         */
116        protected OperationRequiredRole role_ExternalService;
117 
118        /**
119         * The default value of the '{@link #getRetryCount() <em>Retry Count</em>}' attribute.
120         * <!-- begin-user-doc -->
121         * <!-- end-user-doc -->
122         * @see #getRetryCount()
123         * @generated
124         * @ordered
125         */
126        protected static final int RETRY_COUNT_EDEFAULT = 0;
127 
128        /**
129         * The cached value of the '{@link #getRetryCount() <em>Retry Count</em>}' attribute.
130         * <!-- begin-user-doc -->
131         * <!-- end-user-doc -->
132         * @see #getRetryCount()
133         * @generated
134         * @ordered
135         */
136        protected int retryCount = RETRY_COUNT_EDEFAULT;
137 
138        /**
139         * <!-- begin-user-doc -->
140         * <!-- end-user-doc -->
141         * @generated
142         */
143        protected ExternalCallActionImpl() {
144                super();
145        }
146 
147        /**
148         * <!-- begin-user-doc -->
149         * <!-- end-user-doc -->
150         * @generated
151         */
152        @Override
153        protected EClass eStaticClass() {
154                return SeffPackage.Literals.EXTERNAL_CALL_ACTION;
155        }
156 
157        /**
158         * <!-- begin-user-doc -->
159         * <!-- end-user-doc -->
160         * @generated
161         */
162        public EList<VariableUsage> getInputVariableUsages__CallAction() {
163                if (inputVariableUsages__CallAction == null) {
164                        inputVariableUsages__CallAction = new EObjectContainmentWithInverseEList<VariableUsage>(VariableUsage.class, this, SeffPackage.EXTERNAL_CALL_ACTION__INPUT_VARIABLE_USAGES_CALL_ACTION, ParameterPackage.VARIABLE_USAGE__CALL_ACTION_VARIABLE_USAGE);
165                }
166                return inputVariableUsages__CallAction;
167        }
168 
169        /**
170         * <!-- begin-user-doc -->
171         * <!-- end-user-doc -->
172         * @generated
173         */
174        public EList<VariableUsage> getReturnVariableUsage__CallReturnAction() {
175                if (returnVariableUsage__CallReturnAction == null) {
176                        returnVariableUsage__CallReturnAction = new EObjectContainmentWithInverseEList<VariableUsage>(VariableUsage.class, this, SeffPackage.EXTERNAL_CALL_ACTION__RETURN_VARIABLE_USAGE_CALL_RETURN_ACTION, ParameterPackage.VARIABLE_USAGE__CALL_RETURN_ACTION_VARIABLE_USAGE);
177                }
178                return returnVariableUsage__CallReturnAction;
179        }
180 
181        /**
182         * <!-- begin-user-doc -->
183         * <!-- end-user-doc -->
184         * @generated
185         */
186        public EList<FailureType> getFailureTypes_FailureHandlingEntity() {
187                if (failureTypes_FailureHandlingEntity == null) {
188                        failureTypes_FailureHandlingEntity = new EObjectResolvingEList<FailureType>(FailureType.class, this, SeffPackage.EXTERNAL_CALL_ACTION__FAILURE_TYPES_FAILURE_HANDLING_ENTITY);
189                }
190                return failureTypes_FailureHandlingEntity;
191        }
192 
193        /**
194         * <!-- begin-user-doc -->
195         * <!-- end-user-doc -->
196         * @generated
197         */
198        public OperationSignature getCalledService_ExternalService() {
199                if (calledService_ExternalService != null && calledService_ExternalService.eIsProxy()) {
200                        InternalEObject oldCalledService_ExternalService = (InternalEObject)calledService_ExternalService;
201                        calledService_ExternalService = (OperationSignature)eResolveProxy(oldCalledService_ExternalService);
202                        if (calledService_ExternalService != oldCalledService_ExternalService) {
203                                if (eNotificationRequired())
204                                        eNotify(new ENotificationImpl(this, Notification.RESOLVE, SeffPackage.EXTERNAL_CALL_ACTION__CALLED_SERVICE_EXTERNAL_SERVICE, oldCalledService_ExternalService, calledService_ExternalService));
205                        }
206                }
207                return calledService_ExternalService;
208        }
209 
210        /**
211         * <!-- begin-user-doc -->
212         * <!-- end-user-doc -->
213         * @generated
214         */
215        public OperationSignature basicGetCalledService_ExternalService() {
216                return calledService_ExternalService;
217        }
218 
219        /**
220         * <!-- begin-user-doc -->
221         * <!-- end-user-doc -->
222         * @generated
223         */
224        public void setCalledService_ExternalService(OperationSignature newCalledService_ExternalService) {
225                OperationSignature oldCalledService_ExternalService = calledService_ExternalService;
226                calledService_ExternalService = newCalledService_ExternalService;
227                if (eNotificationRequired())
228                        eNotify(new ENotificationImpl(this, Notification.SET, SeffPackage.EXTERNAL_CALL_ACTION__CALLED_SERVICE_EXTERNAL_SERVICE, oldCalledService_ExternalService, calledService_ExternalService));
229        }
230 
231        /**
232         * <!-- begin-user-doc -->
233         * <!-- end-user-doc -->
234         * @generated
235         */
236        public OperationRequiredRole getRole_ExternalService() {
237                if (role_ExternalService != null && role_ExternalService.eIsProxy()) {
238                        InternalEObject oldRole_ExternalService = (InternalEObject)role_ExternalService;
239                        role_ExternalService = (OperationRequiredRole)eResolveProxy(oldRole_ExternalService);
240                        if (role_ExternalService != oldRole_ExternalService) {
241                                if (eNotificationRequired())
242                                        eNotify(new ENotificationImpl(this, Notification.RESOLVE, SeffPackage.EXTERNAL_CALL_ACTION__ROLE_EXTERNAL_SERVICE, oldRole_ExternalService, role_ExternalService));
243                        }
244                }
245                return role_ExternalService;
246        }
247 
248        /**
249         * <!-- begin-user-doc -->
250         * <!-- end-user-doc -->
251         * @generated
252         */
253        public OperationRequiredRole basicGetRole_ExternalService() {
254                return role_ExternalService;
255        }
256 
257        /**
258         * <!-- begin-user-doc -->
259         * <!-- end-user-doc -->
260         * @generated
261         */
262        public void setRole_ExternalService(OperationRequiredRole newRole_ExternalService) {
263                OperationRequiredRole oldRole_ExternalService = role_ExternalService;
264                role_ExternalService = newRole_ExternalService;
265                if (eNotificationRequired())
266                        eNotify(new ENotificationImpl(this, Notification.SET, SeffPackage.EXTERNAL_CALL_ACTION__ROLE_EXTERNAL_SERVICE, oldRole_ExternalService, role_ExternalService));
267        }
268 
269        /**
270         * <!-- begin-user-doc -->
271         * <!-- end-user-doc -->
272         * @generated
273         */
274        public int getRetryCount() {
275                return retryCount;
276        }
277 
278        /**
279         * <!-- begin-user-doc -->
280         * <!-- end-user-doc -->
281         * @generated
282         */
283        public void setRetryCount(int newRetryCount) {
284                int oldRetryCount = retryCount;
285                retryCount = newRetryCount;
286                if (eNotificationRequired())
287                        eNotify(new ENotificationImpl(this, Notification.SET, SeffPackage.EXTERNAL_CALL_ACTION__RETRY_COUNT, oldRetryCount, retryCount));
288        }
289 
290        /**
291         * The cached OCL expression body for the '{@link #SignatureBelongsToRole(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) <em>Signature Belongs To Role</em>}' operation.
292         * <!-- begin-user-doc -->
293         * <!-- end-user-doc -->
294         * @see #SignatureBelongsToRole(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map)
295         * @generated
296         * @ordered
297         */
298        protected static final String SIGNATURE_BELONGS_TO_ROLE__DIAGNOSTIC_CHAIN_MAP__EOCL_EXP = "self.role_ExternalService.requiredInterface__OperationRequiredRole.signatures__OperationInterface->includes(self.calledService_ExternalService)";
299 
300        /**
301         * The cached OCL invariant for the '{@link #SignatureBelongsToRole(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) <em>Signature Belongs To Role</em>}' invariant operation.
302         * <!-- begin-user-doc -->
303         * <!-- end-user-doc -->
304         * @see #SignatureBelongsToRole(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map)
305         * @generated
306         * @ordered
307         */
308        protected static Constraint SIGNATURE_BELONGS_TO_ROLE__DIAGNOSTIC_CHAIN_MAP__EOCL_INV;
309 
310        /**
311         * <!-- begin-user-doc -->
312         * <!-- end-user-doc -->
313         * @generated
314         */
315        public boolean SignatureBelongsToRole(DiagnosticChain diagnostics, Map<Object, Object> context) {
316                if (SIGNATURE_BELONGS_TO_ROLE__DIAGNOSTIC_CHAIN_MAP__EOCL_INV == null) {
317                        OCL.Helper helper = EOCL_ENV.createOCLHelper();
318                        helper.setContext(SeffPackage.Literals.EXTERNAL_CALL_ACTION);
319                        try {
320                                SIGNATURE_BELONGS_TO_ROLE__DIAGNOSTIC_CHAIN_MAP__EOCL_INV = helper.createInvariant(SIGNATURE_BELONGS_TO_ROLE__DIAGNOSTIC_CHAIN_MAP__EOCL_EXP);
321                        }
322                        catch (ParserException pe) {
323                                throw new UnsupportedOperationException(pe.getLocalizedMessage());
324                        }
325                }
326                if (!EOCL_ENV.createQuery(SIGNATURE_BELONGS_TO_ROLE__DIAGNOSTIC_CHAIN_MAP__EOCL_INV).check(this)) {
327                        if (diagnostics != null) {
328                                diagnostics.add
329                                        (new BasicDiagnostic
330                                                (Diagnostic.ERROR,
331                                                 SeffValidator.DIAGNOSTIC_SOURCE,
332                                                 SeffValidator.EXTERNAL_CALL_ACTION__SIGNATURE_BELONGS_TO_ROLE,
333                                                 EcorePlugin.INSTANCE.getString("_UI_GenericInvariant_diagnostic", new Object[] { "SignatureBelongsToRole", EObjectValidator.getObjectLabel(this, context) }),
334                                                 new Object [] { this }));
335                        }
336                        return false;
337                }
338                return true;
339        }
340 
341        /**
342         * <!-- begin-user-doc -->
343         * <!-- end-user-doc -->
344         * @generated
345         */
346        @SuppressWarnings("unchecked")
347        @Override
348        public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
349                switch (featureID) {
350                        case SeffPackage.EXTERNAL_CALL_ACTION__INPUT_VARIABLE_USAGES_CALL_ACTION:
351                                return ((InternalEList<InternalEObject>)(InternalEList<?>)getInputVariableUsages__CallAction()).basicAdd(otherEnd, msgs);
352                        case SeffPackage.EXTERNAL_CALL_ACTION__RETURN_VARIABLE_USAGE_CALL_RETURN_ACTION:
353                                return ((InternalEList<InternalEObject>)(InternalEList<?>)getReturnVariableUsage__CallReturnAction()).basicAdd(otherEnd, msgs);
354                }
355                return super.eInverseAdd(otherEnd, featureID, msgs);
356        }
357 
358        /**
359         * <!-- begin-user-doc -->
360         * <!-- end-user-doc -->
361         * @generated
362         */
363        @Override
364        public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
365                switch (featureID) {
366                        case SeffPackage.EXTERNAL_CALL_ACTION__INPUT_VARIABLE_USAGES_CALL_ACTION:
367                                return ((InternalEList<?>)getInputVariableUsages__CallAction()).basicRemove(otherEnd, msgs);
368                        case SeffPackage.EXTERNAL_CALL_ACTION__RETURN_VARIABLE_USAGE_CALL_RETURN_ACTION:
369                                return ((InternalEList<?>)getReturnVariableUsage__CallReturnAction()).basicRemove(otherEnd, msgs);
370                }
371                return super.eInverseRemove(otherEnd, featureID, msgs);
372        }
373 
374        /**
375         * <!-- begin-user-doc -->
376         * <!-- end-user-doc -->
377         * @generated
378         */
379        @Override
380        public Object eGet(int featureID, boolean resolve, boolean coreType) {
381                switch (featureID) {
382                        case SeffPackage.EXTERNAL_CALL_ACTION__INPUT_VARIABLE_USAGES_CALL_ACTION:
383                                return getInputVariableUsages__CallAction();
384                        case SeffPackage.EXTERNAL_CALL_ACTION__RETURN_VARIABLE_USAGE_CALL_RETURN_ACTION:
385                                return getReturnVariableUsage__CallReturnAction();
386                        case SeffPackage.EXTERNAL_CALL_ACTION__FAILURE_TYPES_FAILURE_HANDLING_ENTITY:
387                                return getFailureTypes_FailureHandlingEntity();
388                        case SeffPackage.EXTERNAL_CALL_ACTION__CALLED_SERVICE_EXTERNAL_SERVICE:
389                                if (resolve) return getCalledService_ExternalService();
390                                return basicGetCalledService_ExternalService();
391                        case SeffPackage.EXTERNAL_CALL_ACTION__ROLE_EXTERNAL_SERVICE:
392                                if (resolve) return getRole_ExternalService();
393                                return basicGetRole_ExternalService();
394                        case SeffPackage.EXTERNAL_CALL_ACTION__RETRY_COUNT:
395                                return getRetryCount();
396                }
397                return super.eGet(featureID, resolve, coreType);
398        }
399 
400        /**
401         * <!-- begin-user-doc -->
402         * <!-- end-user-doc -->
403         * @generated
404         */
405        @SuppressWarnings("unchecked")
406        @Override
407        public void eSet(int featureID, Object newValue) {
408                switch (featureID) {
409                        case SeffPackage.EXTERNAL_CALL_ACTION__INPUT_VARIABLE_USAGES_CALL_ACTION:
410                                getInputVariableUsages__CallAction().clear();
411                                getInputVariableUsages__CallAction().addAll((Collection<? extends VariableUsage>)newValue);
412                                return;
413                        case SeffPackage.EXTERNAL_CALL_ACTION__RETURN_VARIABLE_USAGE_CALL_RETURN_ACTION:
414                                getReturnVariableUsage__CallReturnAction().clear();
415                                getReturnVariableUsage__CallReturnAction().addAll((Collection<? extends VariableUsage>)newValue);
416                                return;
417                        case SeffPackage.EXTERNAL_CALL_ACTION__FAILURE_TYPES_FAILURE_HANDLING_ENTITY:
418                                getFailureTypes_FailureHandlingEntity().clear();
419                                getFailureTypes_FailureHandlingEntity().addAll((Collection<? extends FailureType>)newValue);
420                                return;
421                        case SeffPackage.EXTERNAL_CALL_ACTION__CALLED_SERVICE_EXTERNAL_SERVICE:
422                                setCalledService_ExternalService((OperationSignature)newValue);
423                                return;
424                        case SeffPackage.EXTERNAL_CALL_ACTION__ROLE_EXTERNAL_SERVICE:
425                                setRole_ExternalService((OperationRequiredRole)newValue);
426                                return;
427                        case SeffPackage.EXTERNAL_CALL_ACTION__RETRY_COUNT:
428                                setRetryCount((Integer)newValue);
429                                return;
430                }
431                super.eSet(featureID, newValue);
432        }
433 
434        /**
435         * <!-- begin-user-doc -->
436         * <!-- end-user-doc -->
437         * @generated
438         */
439        @Override
440        public void eUnset(int featureID) {
441                switch (featureID) {
442                        case SeffPackage.EXTERNAL_CALL_ACTION__INPUT_VARIABLE_USAGES_CALL_ACTION:
443                                getInputVariableUsages__CallAction().clear();
444                                return;
445                        case SeffPackage.EXTERNAL_CALL_ACTION__RETURN_VARIABLE_USAGE_CALL_RETURN_ACTION:
446                                getReturnVariableUsage__CallReturnAction().clear();
447                                return;
448                        case SeffPackage.EXTERNAL_CALL_ACTION__FAILURE_TYPES_FAILURE_HANDLING_ENTITY:
449                                getFailureTypes_FailureHandlingEntity().clear();
450                                return;
451                        case SeffPackage.EXTERNAL_CALL_ACTION__CALLED_SERVICE_EXTERNAL_SERVICE:
452                                setCalledService_ExternalService((OperationSignature)null);
453                                return;
454                        case SeffPackage.EXTERNAL_CALL_ACTION__ROLE_EXTERNAL_SERVICE:
455                                setRole_ExternalService((OperationRequiredRole)null);
456                                return;
457                        case SeffPackage.EXTERNAL_CALL_ACTION__RETRY_COUNT:
458                                setRetryCount(RETRY_COUNT_EDEFAULT);
459                                return;
460                }
461                super.eUnset(featureID);
462        }
463 
464        /**
465         * <!-- begin-user-doc -->
466         * <!-- end-user-doc -->
467         * @generated
468         */
469        @Override
470        public boolean eIsSet(int featureID) {
471                switch (featureID) {
472                        case SeffPackage.EXTERNAL_CALL_ACTION__INPUT_VARIABLE_USAGES_CALL_ACTION:
473                                return inputVariableUsages__CallAction != null && !inputVariableUsages__CallAction.isEmpty();
474                        case SeffPackage.EXTERNAL_CALL_ACTION__RETURN_VARIABLE_USAGE_CALL_RETURN_ACTION:
475                                return returnVariableUsage__CallReturnAction != null && !returnVariableUsage__CallReturnAction.isEmpty();
476                        case SeffPackage.EXTERNAL_CALL_ACTION__FAILURE_TYPES_FAILURE_HANDLING_ENTITY:
477                                return failureTypes_FailureHandlingEntity != null && !failureTypes_FailureHandlingEntity.isEmpty();
478                        case SeffPackage.EXTERNAL_CALL_ACTION__CALLED_SERVICE_EXTERNAL_SERVICE:
479                                return calledService_ExternalService != null;
480                        case SeffPackage.EXTERNAL_CALL_ACTION__ROLE_EXTERNAL_SERVICE:
481                                return role_ExternalService != null;
482                        case SeffPackage.EXTERNAL_CALL_ACTION__RETRY_COUNT:
483                                return retryCount != RETRY_COUNT_EDEFAULT;
484                }
485                return super.eIsSet(featureID);
486        }
487 
488        /**
489         * <!-- begin-user-doc -->
490         * <!-- end-user-doc -->
491         * @generated
492         */
493        @Override
494        public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) {
495                if (baseClass == CallAction.class) {
496                        switch (derivedFeatureID) {
497                                case SeffPackage.EXTERNAL_CALL_ACTION__INPUT_VARIABLE_USAGES_CALL_ACTION: return SeffPackage.CALL_ACTION__INPUT_VARIABLE_USAGES_CALL_ACTION;
498                                default: return -1;
499                        }
500                }
501                if (baseClass == CallReturnAction.class) {
502                        switch (derivedFeatureID) {
503                                case SeffPackage.EXTERNAL_CALL_ACTION__RETURN_VARIABLE_USAGE_CALL_RETURN_ACTION: return SeffPackage.CALL_RETURN_ACTION__RETURN_VARIABLE_USAGE_CALL_RETURN_ACTION;
504                                default: return -1;
505                        }
506                }
507                if (baseClass == FailureHandlingEntity.class) {
508                        switch (derivedFeatureID) {
509                                case SeffPackage.EXTERNAL_CALL_ACTION__FAILURE_TYPES_FAILURE_HANDLING_ENTITY: return Seff_reliabilityPackage.FAILURE_HANDLING_ENTITY__FAILURE_TYPES_FAILURE_HANDLING_ENTITY;
510                                default: return -1;
511                        }
512                }
513                return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass);
514        }
515 
516        /**
517         * <!-- begin-user-doc -->
518         * <!-- end-user-doc -->
519         * @generated
520         */
521        @Override
522        public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) {
523                if (baseClass == CallAction.class) {
524                        switch (baseFeatureID) {
525                                case SeffPackage.CALL_ACTION__INPUT_VARIABLE_USAGES_CALL_ACTION: return SeffPackage.EXTERNAL_CALL_ACTION__INPUT_VARIABLE_USAGES_CALL_ACTION;
526                                default: return -1;
527                        }
528                }
529                if (baseClass == CallReturnAction.class) {
530                        switch (baseFeatureID) {
531                                case SeffPackage.CALL_RETURN_ACTION__RETURN_VARIABLE_USAGE_CALL_RETURN_ACTION: return SeffPackage.EXTERNAL_CALL_ACTION__RETURN_VARIABLE_USAGE_CALL_RETURN_ACTION;
532                                default: return -1;
533                        }
534                }
535                if (baseClass == FailureHandlingEntity.class) {
536                        switch (baseFeatureID) {
537                                case Seff_reliabilityPackage.FAILURE_HANDLING_ENTITY__FAILURE_TYPES_FAILURE_HANDLING_ENTITY: return SeffPackage.EXTERNAL_CALL_ACTION__FAILURE_TYPES_FAILURE_HANDLING_ENTITY;
538                                default: return -1;
539                        }
540                }
541                return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass);
542        }
543 
544        /**
545         * <!-- begin-user-doc -->
546         * <!-- end-user-doc -->
547         * @generated
548         */
549        @Override
550        public String toString() {
551                if (eIsProxy()) return super.toString();
552 
553                StringBuffer result = new StringBuffer(super.toString());
554                result.append(" (retryCount: ");
555                result.append(retryCount);
556                result.append(')');
557                return result.toString();
558        }
559 
560        /**
561         * The cached environment for evaluating OCL expressions.
562         * <!-- begin-user-doc -->
563         * <!-- end-user-doc -->
564         * @generated
565         * @ordered
566         */
567        protected static final OCL EOCL_ENV = OCL.newInstance();
568 
569} //ExternalCallActionImpl

[all classes][de.uka.ipd.sdq.pcm.seff.impl]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov