blob: b06462ceec4632292823dbed72fca684ddb8da46 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
package tools.refinery.store.dse.internal;
import tools.refinery.store.adapter.ModelAdapter;
import tools.refinery.store.model.Model;
import tools.refinery.store.model.ModelStore;
import tools.refinery.store.query.dnf.RelationalQuery;
import tools.refinery.store.dse.DesignSpaceExplorationStoreAdapter;
import tools.refinery.store.dse.Strategy;
import tools.refinery.store.dse.objectives.Objective;
import java.util.LinkedHashSet;
import java.util.List;
public class DesignSpaceExplorationStoreAdapterImpl implements DesignSpaceExplorationStoreAdapter {
private final ModelStore store;
private final LinkedHashSet<TransformationRule> transformationSpecifications;
private final LinkedHashSet<RelationalQuery> globalConstraints;
private final List<Objective> objectives;
private final Strategy strategy;
public DesignSpaceExplorationStoreAdapterImpl(ModelStore store,
LinkedHashSet<TransformationRule> transformationSpecifications,
LinkedHashSet<RelationalQuery> globalConstraints,
List<Objective> objectives, Strategy strategy) {
this.store = store;
this.transformationSpecifications = transformationSpecifications;
this.globalConstraints = globalConstraints;
this.objectives = objectives;
this.strategy = strategy;
}
@Override
public ModelStore getStore() {
return store;
}
@Override
public ModelAdapter createModelAdapter(Model model) {
return new DesignSpaceExplorationAdapterImpl(model, this);
}
public LinkedHashSet<TransformationRule> getTransformationSpecifications() {
return transformationSpecifications;
}
public LinkedHashSet<RelationalQuery> getGlobalConstraints() {
return globalConstraints;
}
public List<Objective> getObjectives() {
return objectives;
}
public Strategy getStrategy() {
return strategy;
}
}
|