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:
IPatternGroup
querySpecifications
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.
|
getSpecifications
prepare, prepare
public static OptimizationPatterns instance() throws ViatraQueryException
ViatraQueryException
- if there was an error loading the generated code of pattern specificationspublic EpsilonTransitionQuerySpecification getEpsilonTransition() throws ViatraQueryException
ViatraQueryException
public EpsilonTransitionMatcher getEpsilonTransition(ViatraQueryEngine engine) throws ViatraQueryException
ViatraQueryException
public EquivalentTransitionsQuerySpecification getEquivalentTransitions() throws ViatraQueryException
ViatraQueryException
public EquivalentTransitionsMatcher getEquivalentTransitions(ViatraQueryEngine engine) throws ViatraQueryException
ViatraQueryException
public EquivalentStatesQuerySpecification getEquivalentStates() throws ViatraQueryException
ViatraQueryException
public EquivalentStatesMatcher getEquivalentStates(ViatraQueryEngine engine) throws ViatraQueryException
ViatraQueryException