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