diff options
author | 20001LastOrder <boqi.chen@mail.mcgill.ca> | 2019-08-13 18:10:02 -0400 |
---|---|---|
committer | 20001LastOrder <boqi.chen@mail.mcgill.ca> | 2019-08-13 18:10:02 -0400 |
commit | a882ad00515e730bad5e52fa29b74f461a5b9cd6 (patch) | |
tree | 5c892f1dc5b501aa3f7355e97f24cca277a473db /Metrics/Metrics-Calculation/ca.mcgill.ecse.dslreasoner.realistic.metrics.calculator/constraints/ecore/Ecore_pattern.java | |
parent | Configurations for generation and new domain for generation ecore model (diff) | |
download | VIATRA-Generator-a882ad00515e730bad5e52fa29b74f461a5b9cd6.tar.gz VIATRA-Generator-a882ad00515e730bad5e52fa29b74f461a5b9cd6.tar.zst VIATRA-Generator-a882ad00515e730bad5e52fa29b74f461a5b9cd6.zip |
change exploration value function
Diffstat (limited to 'Metrics/Metrics-Calculation/ca.mcgill.ecse.dslreasoner.realistic.metrics.calculator/constraints/ecore/Ecore_pattern.java')
-rw-r--r-- | Metrics/Metrics-Calculation/ca.mcgill.ecse.dslreasoner.realistic.metrics.calculator/constraints/ecore/Ecore_pattern.java | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/Metrics/Metrics-Calculation/ca.mcgill.ecse.dslreasoner.realistic.metrics.calculator/constraints/ecore/Ecore_pattern.java b/Metrics/Metrics-Calculation/ca.mcgill.ecse.dslreasoner.realistic.metrics.calculator/constraints/ecore/Ecore_pattern.java new file mode 100644 index 00000000..6da94486 --- /dev/null +++ b/Metrics/Metrics-Calculation/ca.mcgill.ecse.dslreasoner.realistic.metrics.calculator/constraints/ecore/Ecore_pattern.java | |||
@@ -0,0 +1,53 @@ | |||
1 | /** | ||
2 | * Generated from platform:/resource/SocialNetwork_plugin/queries/ecore/ecore_pattern.vql | ||
3 | */ | ||
4 | package ecore; | ||
5 | |||
6 | import ecore.MoreThenFiveSuperTypes; | ||
7 | import org.eclipse.viatra.query.runtime.api.ViatraQueryEngine; | ||
8 | import org.eclipse.viatra.query.runtime.api.impl.BaseGeneratedPatternGroup; | ||
9 | |||
10 | /** | ||
11 | * A pattern group formed of all public patterns defined in ecore_pattern.vql. | ||
12 | * | ||
13 | * <p>Use the static instance as any {@link interface org.eclipse.viatra.query.runtime.api.IQueryGroup}, to conveniently prepare | ||
14 | * a VIATRA Query engine for matching all patterns originally defined in file ecore_pattern.vql, | ||
15 | * in order to achieve better performance than one-by-one on-demand matcher initialization. | ||
16 | * | ||
17 | * <p> From package ecore, the group contains the definition of the following patterns: <ul> | ||
18 | * <li>moreThenFiveSuperTypes</li> | ||
19 | * </ul> | ||
20 | * | ||
21 | * @see IQueryGroup | ||
22 | * | ||
23 | */ | ||
24 | @SuppressWarnings("all") | ||
25 | public final class Ecore_pattern extends BaseGeneratedPatternGroup { | ||
26 | /** | ||
27 | * Access the pattern group. | ||
28 | * | ||
29 | * @return the singleton instance of the group | ||
30 | * @throws ViatraQueryRuntimeException if there was an error loading the generated code of pattern specifications | ||
31 | * | ||
32 | */ | ||
33 | public static Ecore_pattern instance() { | ||
34 | if (INSTANCE == null) { | ||
35 | INSTANCE = new Ecore_pattern(); | ||
36 | } | ||
37 | return INSTANCE; | ||
38 | } | ||
39 | |||
40 | private static Ecore_pattern INSTANCE; | ||
41 | |||
42 | private Ecore_pattern() { | ||
43 | querySpecifications.add(MoreThenFiveSuperTypes.instance()); | ||
44 | } | ||
45 | |||
46 | public MoreThenFiveSuperTypes getMoreThenFiveSuperTypes() { | ||
47 | return MoreThenFiveSuperTypes.instance(); | ||
48 | } | ||
49 | |||
50 | public MoreThenFiveSuperTypes.Matcher getMoreThenFiveSuperTypes(final ViatraQueryEngine engine) { | ||
51 | return MoreThenFiveSuperTypes.Matcher.on(engine); | ||
52 | } | ||
53 | } | ||