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