diff options
author | 2019-05-15 13:46:38 -0400 | |
---|---|---|
committer | 2019-05-15 13:46:38 -0400 | |
commit | e904f9d4b1d2d15ab4ec6d72ee881f4c7de34eef (patch) | |
tree | 42cb23ff8839308345c0859cdf99469c930af03b /Domains/hu.bme.mit.inf.dslreasoner.domains.cps/src-gen/hu/bme/mit/inf/dslreasoner/domains/cps/queries/CpsQueries.java | |
parent | Merge remote-tracking branch 'origin/master' into kris (diff) | |
download | VIATRA-Generator-e904f9d4b1d2d15ab4ec6d72ee881f4c7de34eef.tar.gz VIATRA-Generator-e904f9d4b1d2d15ab4ec6d72ee881f4c7de34eef.tar.zst VIATRA-Generator-e904f9d4b1d2d15ab4ec6d72ee881f4c7de34eef.zip |
Formalize CPS case study for optimization
Diffstat (limited to 'Domains/hu.bme.mit.inf.dslreasoner.domains.cps/src-gen/hu/bme/mit/inf/dslreasoner/domains/cps/queries/CpsQueries.java')
-rw-r--r-- | Domains/hu.bme.mit.inf.dslreasoner.domains.cps/src-gen/hu/bme/mit/inf/dslreasoner/domains/cps/queries/CpsQueries.java | 207 |
1 files changed, 207 insertions, 0 deletions
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.cps/src-gen/hu/bme/mit/inf/dslreasoner/domains/cps/queries/CpsQueries.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.cps/src-gen/hu/bme/mit/inf/dslreasoner/domains/cps/queries/CpsQueries.java new file mode 100644 index 00000000..4442718b --- /dev/null +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.cps/src-gen/hu/bme/mit/inf/dslreasoner/domains/cps/queries/CpsQueries.java | |||
@@ -0,0 +1,207 @@ | |||
1 | /** | ||
2 | * Generated from platform:/resource/hu.bme.mit.inf.dslreasoner.domains.cps/src/hu/bme/mit/inf/dslreasoner/domains/cps/queries/CpsQueries.vql | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.domains.cps.queries; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.domains.cps.queries.AllocationWithoutResourceRequirement; | ||
7 | import hu.bme.mit.inf.dslreasoner.domains.cps.queries.AvailableHdd; | ||
8 | import hu.bme.mit.inf.dslreasoner.domains.cps.queries.AvailableMemory; | ||
9 | import hu.bme.mit.inf.dslreasoner.domains.cps.queries.AverageFreeHddMetric; | ||
10 | import hu.bme.mit.inf.dslreasoner.domains.cps.queries.AverageFreeMemoryMetric; | ||
11 | import hu.bme.mit.inf.dslreasoner.domains.cps.queries.CostMetric; | ||
12 | import hu.bme.mit.inf.dslreasoner.domains.cps.queries.CpsApplications; | ||
13 | import hu.bme.mit.inf.dslreasoner.domains.cps.queries.CpsCost; | ||
14 | import hu.bme.mit.inf.dslreasoner.domains.cps.queries.CpsHosts; | ||
15 | import hu.bme.mit.inf.dslreasoner.domains.cps.queries.InstanceDoesNotSatisfyRequirement; | ||
16 | import hu.bme.mit.inf.dslreasoner.domains.cps.queries.NotEnoughAvailableHdd; | ||
17 | import hu.bme.mit.inf.dslreasoner.domains.cps.queries.NotEnoughAvailableMemory; | ||
18 | import hu.bme.mit.inf.dslreasoner.domains.cps.queries.RequirementNotSatisfied; | ||
19 | import hu.bme.mit.inf.dslreasoner.domains.cps.queries.TotalHdd; | ||
20 | import hu.bme.mit.inf.dslreasoner.domains.cps.queries.TotalMemory; | ||
21 | import org.eclipse.viatra.query.runtime.api.ViatraQueryEngine; | ||
22 | import org.eclipse.viatra.query.runtime.api.impl.BaseGeneratedPatternGroup; | ||
23 | |||
24 | /** | ||
25 | * A pattern group formed of all public patterns defined in CpsQueries.vql. | ||
26 | * | ||
27 | * <p>Use the static instance as any {@link interface org.eclipse.viatra.query.runtime.api.IQueryGroup}, to conveniently prepare | ||
28 | * a VIATRA Query engine for matching all patterns originally defined in file CpsQueries.vql, | ||
29 | * in order to achieve better performance than one-by-one on-demand matcher initialization. | ||
30 | * | ||
31 | * <p> From package hu.bme.mit.inf.dslreasoner.domains.cps.queries, the group contains the definition of the following patterns: <ul> | ||
32 | * <li>cpsApplications</li> | ||
33 | * <li>cpsHosts</li> | ||
34 | * <li>totalMemory</li> | ||
35 | * <li>totalHdd</li> | ||
36 | * <li>availableMemory</li> | ||
37 | * <li>availableHdd</li> | ||
38 | * <li>allocationWithoutResourceRequirement</li> | ||
39 | * <li>notEnoughAvailableMemory</li> | ||
40 | * <li>notEnoughAvailableHdd</li> | ||
41 | * <li>instanceDoesNotSatisfyRequirement</li> | ||
42 | * <li>requirementNotSatisfied</li> | ||
43 | * <li>averageFreeMemoryMetric</li> | ||
44 | * <li>averageFreeHddMetric</li> | ||
45 | * <li>costMetric</li> | ||
46 | * <li>cpsCost</li> | ||
47 | * </ul> | ||
48 | * | ||
49 | * @see IQueryGroup | ||
50 | * | ||
51 | */ | ||
52 | @SuppressWarnings("all") | ||
53 | public final class CpsQueries extends BaseGeneratedPatternGroup { | ||
54 | /** | ||
55 | * Access the pattern group. | ||
56 | * | ||
57 | * @return the singleton instance of the group | ||
58 | * @throws ViatraQueryRuntimeException if there was an error loading the generated code of pattern specifications | ||
59 | * | ||
60 | */ | ||
61 | public static CpsQueries instance() { | ||
62 | if (INSTANCE == null) { | ||
63 | INSTANCE = new CpsQueries(); | ||
64 | } | ||
65 | return INSTANCE; | ||
66 | } | ||
67 | |||
68 | private static CpsQueries INSTANCE; | ||
69 | |||
70 | private CpsQueries() { | ||
71 | querySpecifications.add(CpsApplications.instance()); | ||
72 | querySpecifications.add(CpsHosts.instance()); | ||
73 | querySpecifications.add(TotalMemory.instance()); | ||
74 | querySpecifications.add(TotalHdd.instance()); | ||
75 | querySpecifications.add(AvailableMemory.instance()); | ||
76 | querySpecifications.add(AvailableHdd.instance()); | ||
77 | querySpecifications.add(AllocationWithoutResourceRequirement.instance()); | ||
78 | querySpecifications.add(NotEnoughAvailableMemory.instance()); | ||
79 | querySpecifications.add(NotEnoughAvailableHdd.instance()); | ||
80 | querySpecifications.add(InstanceDoesNotSatisfyRequirement.instance()); | ||
81 | querySpecifications.add(RequirementNotSatisfied.instance()); | ||
82 | querySpecifications.add(AverageFreeMemoryMetric.instance()); | ||
83 | querySpecifications.add(AverageFreeHddMetric.instance()); | ||
84 | querySpecifications.add(CostMetric.instance()); | ||
85 | querySpecifications.add(CpsCost.instance()); | ||
86 | } | ||
87 | |||
88 | public CpsApplications getCpsApplications() { | ||
89 | return CpsApplications.instance(); | ||
90 | } | ||
91 | |||
92 | public CpsApplications.Matcher getCpsApplications(final ViatraQueryEngine engine) { | ||
93 | return CpsApplications.Matcher.on(engine); | ||
94 | } | ||
95 | |||
96 | public CpsHosts getCpsHosts() { | ||
97 | return CpsHosts.instance(); | ||
98 | } | ||
99 | |||
100 | public CpsHosts.Matcher getCpsHosts(final ViatraQueryEngine engine) { | ||
101 | return CpsHosts.Matcher.on(engine); | ||
102 | } | ||
103 | |||
104 | public TotalMemory getTotalMemory() { | ||
105 | return TotalMemory.instance(); | ||
106 | } | ||
107 | |||
108 | public TotalMemory.Matcher getTotalMemory(final ViatraQueryEngine engine) { | ||
109 | return TotalMemory.Matcher.on(engine); | ||
110 | } | ||
111 | |||
112 | public TotalHdd getTotalHdd() { | ||
113 | return TotalHdd.instance(); | ||
114 | } | ||
115 | |||
116 | public TotalHdd.Matcher getTotalHdd(final ViatraQueryEngine engine) { | ||
117 | return TotalHdd.Matcher.on(engine); | ||
118 | } | ||
119 | |||
120 | public AvailableMemory getAvailableMemory() { | ||
121 | return AvailableMemory.instance(); | ||
122 | } | ||
123 | |||
124 | public AvailableMemory.Matcher getAvailableMemory(final ViatraQueryEngine engine) { | ||
125 | return AvailableMemory.Matcher.on(engine); | ||
126 | } | ||
127 | |||
128 | public AvailableHdd getAvailableHdd() { | ||
129 | return AvailableHdd.instance(); | ||
130 | } | ||
131 | |||
132 | public AvailableHdd.Matcher getAvailableHdd(final ViatraQueryEngine engine) { | ||
133 | return AvailableHdd.Matcher.on(engine); | ||
134 | } | ||
135 | |||
136 | public AllocationWithoutResourceRequirement getAllocationWithoutResourceRequirement() { | ||
137 | return AllocationWithoutResourceRequirement.instance(); | ||
138 | } | ||
139 | |||
140 | public AllocationWithoutResourceRequirement.Matcher getAllocationWithoutResourceRequirement(final ViatraQueryEngine engine) { | ||
141 | return AllocationWithoutResourceRequirement.Matcher.on(engine); | ||
142 | } | ||
143 | |||
144 | public NotEnoughAvailableMemory getNotEnoughAvailableMemory() { | ||
145 | return NotEnoughAvailableMemory.instance(); | ||
146 | } | ||
147 | |||
148 | public NotEnoughAvailableMemory.Matcher getNotEnoughAvailableMemory(final ViatraQueryEngine engine) { | ||
149 | return NotEnoughAvailableMemory.Matcher.on(engine); | ||
150 | } | ||
151 | |||
152 | public NotEnoughAvailableHdd getNotEnoughAvailableHdd() { | ||
153 | return NotEnoughAvailableHdd.instance(); | ||
154 | } | ||
155 | |||
156 | public NotEnoughAvailableHdd.Matcher getNotEnoughAvailableHdd(final ViatraQueryEngine engine) { | ||
157 | return NotEnoughAvailableHdd.Matcher.on(engine); | ||
158 | } | ||
159 | |||
160 | public InstanceDoesNotSatisfyRequirement getInstanceDoesNotSatisfyRequirement() { | ||
161 | return InstanceDoesNotSatisfyRequirement.instance(); | ||
162 | } | ||
163 | |||
164 | public InstanceDoesNotSatisfyRequirement.Matcher getInstanceDoesNotSatisfyRequirement(final ViatraQueryEngine engine) { | ||
165 | return InstanceDoesNotSatisfyRequirement.Matcher.on(engine); | ||
166 | } | ||
167 | |||
168 | public RequirementNotSatisfied getRequirementNotSatisfied() { | ||
169 | return RequirementNotSatisfied.instance(); | ||
170 | } | ||
171 | |||
172 | public RequirementNotSatisfied.Matcher getRequirementNotSatisfied(final ViatraQueryEngine engine) { | ||
173 | return RequirementNotSatisfied.Matcher.on(engine); | ||
174 | } | ||
175 | |||
176 | public AverageFreeMemoryMetric getAverageFreeMemoryMetric() { | ||
177 | return AverageFreeMemoryMetric.instance(); | ||
178 | } | ||
179 | |||
180 | public AverageFreeMemoryMetric.Matcher getAverageFreeMemoryMetric(final ViatraQueryEngine engine) { | ||
181 | return AverageFreeMemoryMetric.Matcher.on(engine); | ||
182 | } | ||
183 | |||
184 | public AverageFreeHddMetric getAverageFreeHddMetric() { | ||
185 | return AverageFreeHddMetric.instance(); | ||
186 | } | ||
187 | |||
188 | public AverageFreeHddMetric.Matcher getAverageFreeHddMetric(final ViatraQueryEngine engine) { | ||
189 | return AverageFreeHddMetric.Matcher.on(engine); | ||
190 | } | ||
191 | |||
192 | public CostMetric getCostMetric() { | ||
193 | return CostMetric.instance(); | ||
194 | } | ||
195 | |||
196 | public CostMetric.Matcher getCostMetric(final ViatraQueryEngine engine) { | ||
197 | return CostMetric.Matcher.on(engine); | ||
198 | } | ||
199 | |||
200 | public CpsCost getCpsCost() { | ||
201 | return CpsCost.instance(); | ||
202 | } | ||
203 | |||
204 | public CpsCost.Matcher getCpsCost(final ViatraQueryEngine engine) { | ||
205 | return CpsCost.Matcher.on(engine); | ||
206 | } | ||
207 | } | ||