1 | package de.uka.ipd.sdq.pcm.transformations.builder.seff; |
2 | |
3 | import java.util.Collection; |
4 | |
5 | import de.uka.ipd.sdq.pcm.parameter.VariableUsage; |
6 | import de.uka.ipd.sdq.pcm.repository.OperationRequiredRole; |
7 | import de.uka.ipd.sdq.pcm.repository.OperationSignature; |
8 | import de.uka.ipd.sdq.pcm.repository.Signature; |
9 | |
10 | public abstract class SignatureDependentExternalCallActionDescriptor extends |
11 | ExternalCallActionDescriptor implements ISignatureDependentAction { |
12 | |
13 | private OperationSignature currentSignature; |
14 | |
15 | public SignatureDependentExternalCallActionDescriptor(OperationSignature sig, |
16 | OperationRequiredRole role) { |
17 | super(sig, role, null, null); |
18 | } |
19 | |
20 | @Override |
21 | protected Collection<VariableUsage> getInputParameter() { |
22 | return getSignatureDependentInputParameter(this.currentSignature); |
23 | } |
24 | |
25 | @Override |
26 | protected Collection<VariableUsage> getOutputParameter() { |
27 | return getSignatureDependentOutputParameter(currentSignature); |
28 | } |
29 | |
30 | protected abstract Collection<VariableUsage> getSignatureDependentInputParameter( |
31 | OperationSignature currentSignature); |
32 | protected abstract Collection<VariableUsage> getSignatureDependentOutputParameter( |
33 | OperationSignature currentSignature); |
34 | |
35 | public void setCurrentSignature(OperationSignature sig) { |
36 | this.currentSignature = sig; |
37 | } |
38 | } |