public final class OptimizationPatterns extends BaseGeneratedPatternGroup
Use the static instance as any org.eclipse.viatra.query.runtime.api.IPatternGroup, to conveniently prepare
a VIATRA Query engine for matching all patterns originally defined in file optimizationPatterns.vql,
in order to achieve better performance than one-by-one on-demand matcher initialization.
From package org.eclipse.viatra.cep.core.engine.compiler, the group contains the definition of the following patterns:
IPatternGroupquerySpecifications| Modifier and Type | Method and Description |
|---|---|
EpsilonTransitionQuerySpecification |
getEpsilonTransition() |
EpsilonTransitionMatcher |
getEpsilonTransition(ViatraQueryEngine engine) |
EquivalentStatesQuerySpecification |
getEquivalentStates() |
EquivalentStatesMatcher |
getEquivalentStates(ViatraQueryEngine engine) |
EquivalentTransitionsQuerySpecification |
getEquivalentTransitions() |
EquivalentTransitionsMatcher |
getEquivalentTransitions(ViatraQueryEngine engine) |
static OptimizationPatterns |
instance()
Access the pattern group.
|
getSpecificationsprepare, preparepublic static OptimizationPatterns instance() throws ViatraQueryException
ViatraQueryException - if there was an error loading the generated code of pattern specificationspublic EpsilonTransitionQuerySpecification getEpsilonTransition() throws ViatraQueryException
ViatraQueryExceptionpublic EpsilonTransitionMatcher getEpsilonTransition(ViatraQueryEngine engine) throws ViatraQueryException
ViatraQueryExceptionpublic EquivalentTransitionsQuerySpecification getEquivalentTransitions() throws ViatraQueryException
ViatraQueryExceptionpublic EquivalentTransitionsMatcher getEquivalentTransitions(ViatraQueryEngine engine) throws ViatraQueryException
ViatraQueryExceptionpublic EquivalentStatesQuerySpecification getEquivalentStates() throws ViatraQueryException
ViatraQueryExceptionpublic EquivalentStatesMatcher getEquivalentStates(ViatraQueryEngine engine) throws ViatraQueryException
ViatraQueryException