1 | package de.uka.ipd.sdq.dsexplore.qml.pcm.datastructures.builder; |
2 | |
3 | import org.opt4j.core.Objective; |
4 | import org.opt4j.core.SatisfactionConstraint; |
5 | import org.opt4j.core.Constraint.Direction; |
6 | |
7 | import de.uka.ipd.sdq.dsexplore.qml.pcm.datastructures.EntryLevelSystemCallSatisfactionConstraint; |
8 | import de.uka.ipd.sdq.pcm.usagemodel.EntryLevelSystemCall; |
9 | |
10 | public class EntryLevelSystemCallSatisfactionConstraintBuilder extends SatisfactionConstraintBuilder { |
11 | |
12 | private EntryLevelSystemCall entryLevelSystemCall; |
13 | |
14 | public EntryLevelSystemCallSatisfactionConstraintBuilder( |
15 | EntryLevelSystemCall entryLevelSystemCall) { |
16 | this.entryLevelSystemCall = entryLevelSystemCall; |
17 | } |
18 | |
19 | @Override |
20 | public SatisfactionConstraint createSatisfactionConstraint(String id, |
21 | Direction direction, double limit, Objective objective) { |
22 | return new EntryLevelSystemCallSatisfactionConstraint(id+"_"+this.entryLevelSystemCall.getId(), direction, limit, objective, this.entryLevelSystemCall); |
23 | } |
24 | |
25 | } |