1 | package de.uka.ipd.sdq.pcm.transformations.builder.seff; |
2 | |
3 | import de.uka.ipd.sdq.pcm.repository.Signature; |
4 | import de.uka.ipd.sdq.pcm.resourcetype.ProcessingResourceType; |
5 | |
6 | public abstract class SignatureDependentInternalActionDescriptor extends |
7 | AbstractInternalActionDescriptor implements ISignatureDependentAction { |
8 | |
9 | protected Signature currentSignature; |
10 | |
11 | public SignatureDependentInternalActionDescriptor( |
12 | ProcessingResourceType resourceType) { |
13 | super(resourceType); |
14 | } |
15 | |
16 | /* (non-Javadoc) |
17 | * @see de.uka.sdq.pcm.transformations.builder.seff.ISignatureDependentAction#setCurrentSignature(de.uka.ipd.sdq.pcm.repository.Signature) |
18 | */ |
19 | public void setCurrentSignature(Signature sig){ |
20 | this.currentSignature = sig; |
21 | } |
22 | |
23 | @Override |
24 | public String getResourceDemand() { |
25 | return getDemand(currentSignature); |
26 | } |
27 | |
28 | protected abstract String getDemand(Signature signature); |
29 | } |