1 | package de.uka.ipd.sdq.pcmsolver.handler; |
2 | |
3 | import de.uka.ipd.sdq.pcm.seff.seff_reliability.RecoveryAction; |
4 | import de.uka.ipd.sdq.pcm.seff.seff_reliability.RecoveryActionBehaviour; |
5 | import de.uka.ipd.sdq.pcmsolver.visitors.SeffVisitor; |
6 | |
7 | public class RecoveryBlockActionHandler { |
8 | private SeffVisitor visitor; |
9 | |
10 | public RecoveryBlockActionHandler(SeffVisitor seffVisitor) { |
11 | visitor = seffVisitor; |
12 | } |
13 | |
14 | public void handle(RecoveryAction recoveryAction) { |
15 | for (RecoveryActionBehaviour behaviour : recoveryAction |
16 | .getRecoveryActionBehaviours__RecoveryAction()) { |
17 | // Direct invocation as a workaround for the missing |
18 | // case for RecoveryBlockAlternativeBehaviours: |
19 | visitor.caseResourceDemandingBehaviour(behaviour); |
20 | } |
21 | } |
22 | } |