1 | /** |
2 | * |
3 | */ |
4 | package de.uka.ipd.sdq.dsexplore.qml.pcm.datastructures; |
5 | |
6 | import org.opt4j.core.InfeasibilityConstraint; |
7 | |
8 | import de.uka.ipd.sdq.pcm.usagemodel.UsageScenario; |
9 | |
10 | /** |
11 | * Criterion tied to an UsageScenario. |
12 | * |
13 | * @author noorshams |
14 | * |
15 | */ |
16 | public class UsageScenarioBasedInfeasibilityConstraint extends InfeasibilityConstraint implements UsageScenarioBasedCriterion{ |
17 | private UsageScenario usageScenario; |
18 | |
19 | public UsageScenarioBasedInfeasibilityConstraint(String name, Direction direction, double limit, UsageScenario usageScenario) { |
20 | super(name, direction, limit); |
21 | this.usageScenario = usageScenario; |
22 | } |
23 | |
24 | @Override |
25 | public UsageScenario getUsageScenario(){ |
26 | return this.usageScenario; |
27 | } |
28 | } |