1 | package de.uka.ipd.sdq.dsexplore.qml.pcm.datastructures.builder; |
2 | |
3 | import org.opt4j.core.Objective; |
4 | import org.opt4j.core.Objective.Sign; |
5 | |
6 | import de.uka.ipd.sdq.dsexplore.qml.pcm.datastructures.UsageScenarioBasedObjective; |
7 | import de.uka.ipd.sdq.pcm.usagemodel.UsageScenario; |
8 | |
9 | public class UsageScenarioBasedObjectiveBuilder extends ObjectiveBuilder{ |
10 | |
11 | private UsageScenario usageScenario; |
12 | |
13 | public UsageScenarioBasedObjectiveBuilder(UsageScenario usageScenario) { |
14 | this.usageScenario = usageScenario; |
15 | } |
16 | |
17 | @Override |
18 | public Objective createObjective(String name, Sign sign) { |
19 | return new UsageScenarioBasedObjective(name+"_"+this.usageScenario.getId(), sign, this.usageScenario); |
20 | } |
21 | |
22 | } |