public final class DerivedFeatures 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 derivedFeatures.vql,
in order to achieve better performance than one-by-one on-demand matcher initialization.
From package org.eclipse.viatra.cep.core.metamodels.derived, the group contains the definition of the following patterns:
IPatternGroup
querySpecifications
Modifier and Type | Method and Description |
---|---|
EventTokensInModelQuerySpecification |
getEventTokensInModel() |
EventTokensInModelMatcher |
getEventTokensInModel(ViatraQueryEngine engine) |
FinalStatesQuerySpecification |
getFinalStates() |
FinalStatesMatcher |
getFinalStates(ViatraQueryEngine engine) |
InitialStateQuerySpecification |
getInitialState() |
InitialStateMatcher |
getInitialState(ViatraQueryEngine engine) |
TrapStateQuerySpecification |
getTrapState() |
TrapStateMatcher |
getTrapState(ViatraQueryEngine engine) |
static DerivedFeatures |
instance()
Access the pattern group.
|
getSpecifications
prepare, prepare
public static DerivedFeatures instance() throws ViatraQueryException
ViatraQueryException
- if there was an error loading the generated code of pattern specificationspublic InitialStateQuerySpecification getInitialState() throws ViatraQueryException
ViatraQueryException
public InitialStateMatcher getInitialState(ViatraQueryEngine engine) throws ViatraQueryException
ViatraQueryException
public FinalStatesQuerySpecification getFinalStates() throws ViatraQueryException
ViatraQueryException
public FinalStatesMatcher getFinalStates(ViatraQueryEngine engine) throws ViatraQueryException
ViatraQueryException
public TrapStateQuerySpecification getTrapState() throws ViatraQueryException
ViatraQueryException
public TrapStateMatcher getTrapState(ViatraQueryEngine engine) throws ViatraQueryException
ViatraQueryException
public EventTokensInModelQuerySpecification getEventTokensInModel() throws ViatraQueryException
ViatraQueryException
public EventTokensInModelMatcher getEventTokensInModel(ViatraQueryEngine engine) throws ViatraQueryException
ViatraQueryException