public final class Rules
extends java.lang.Object
RuleSpecification
.Modifier and Type | Method and Description |
---|---|
static <Match extends IPatternMatch> |
newMatcherRuleSpecification(IQuerySpecification<? extends ViatraQueryMatcher<Match>> querySpecification,
ActivationLifeCycle lifecycle,
java.util.Set<Job<Match>> jobs)
Creates a
RuleSpecification with the given query specification, life-cycle and jobs. |
static <Match extends IPatternMatch> |
newMatcherRuleSpecification(IQuerySpecification<? extends ViatraQueryMatcher<Match>> querySpecification,
ActivationLifeCycle lifecycle,
java.util.Set<Job<Match>> jobs,
java.lang.String name)
Creates a
RuleSpecification with the given query specification, life-cycle and jobs and name. |
static <Match extends IPatternMatch> |
newMatcherRuleSpecification(IQuerySpecification<? extends ViatraQueryMatcher<Match>> querySpecification,
java.util.Set<Job<Match>> jobs)
Creates a
RuleSpecification with the given query specification and jobs,
using the DefaultActivationLifeCycle#DEFAULT life-cycle. |
static <Match extends IPatternMatch> |
newMatcherRuleSpecification(ViatraQueryMatcher<Match> matcher,
ActivationLifeCycle lifecycle,
java.util.Set<Job<Match>> jobs) |
static <Match extends IPatternMatch> |
newMatcherRuleSpecification(ViatraQueryMatcher<Match> matcher,
ActivationLifeCycle lifecycle,
java.util.Set<Job<Match>> jobs,
java.lang.String name) |
static <Match extends IPatternMatch> |
newMultiMatchFilter(java.util.Collection<Match> filterMatches,
ViatraQueryFilterSemantics semantics)
Creates a "multi" event filter that uses the IPatternMatch.isCompatibleWith to check event atoms against a collection
of filter (partial) matches.
|
static <Match extends IPatternMatch> |
newSingleMatchFilter(Match filterMatch)
Creates an event filter that uses the IPatternMatch.isCompatibleWith to check event atoms.
|
public static <Match extends IPatternMatch> RuleSpecification<Match> newMatcherRuleSpecification(IQuerySpecification<? extends ViatraQueryMatcher<Match>> querySpecification, ActivationLifeCycle lifecycle, java.util.Set<Job<Match>> jobs)
RuleSpecification
with the given query specification, life-cycle and jobs.
For default life-cycle implementations, see DefaultActivationLifeCycle
.querySpecification
- lifecycle
- jobs
- public static <Match extends IPatternMatch> RuleSpecification<Match> newMatcherRuleSpecification(IQuerySpecification<? extends ViatraQueryMatcher<Match>> querySpecification, ActivationLifeCycle lifecycle, java.util.Set<Job<Match>> jobs, java.lang.String name)
RuleSpecification
with the given query specification, life-cycle and jobs and name.
For default life-cycle implementations, see DefaultActivationLifeCycle
.querySpecification
- lifecycle
- jobs
- name
- public static <Match extends IPatternMatch> RuleSpecification<Match> newMatcherRuleSpecification(IQuerySpecification<? extends ViatraQueryMatcher<Match>> querySpecification, java.util.Set<Job<Match>> jobs)
RuleSpecification
with the given query specification and jobs,
using the DefaultActivationLifeCycle#DEFAULT
life-cycle.querySpecification
- jobs
- public static <Match extends IPatternMatch> RuleSpecification<Match> newMatcherRuleSpecification(ViatraQueryMatcher<Match> matcher, ActivationLifeCycle lifecycle, java.util.Set<Job<Match>> jobs)
public static <Match extends IPatternMatch> RuleSpecification<Match> newMatcherRuleSpecification(ViatraQueryMatcher<Match> matcher, ActivationLifeCycle lifecycle, java.util.Set<Job<Match>> jobs, java.lang.String name)
public static <Match extends IPatternMatch> EventFilter<Match> newSingleMatchFilter(Match filterMatch)
filterMatch
- non-null match to use for filteringpublic static <Match extends IPatternMatch> EventFilter<Match> newMultiMatchFilter(java.util.Collection<Match> filterMatches, ViatraQueryFilterSemantics semantics)
ViatraQueryFilterSemantics
.filterMatches
- non-null match to use for filteringsemantics
- the filter semantics to use