public class BatchTransformationRule<Match extends IPatternMatch,Matcher extends ViatraQueryMatcher<Match>> extends java.lang.Object implements ITransformationRule<Match,Matcher>
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
ruleName |
static ActivationLifeCycle |
STATEFUL_RULE_LIFECYCLE
Lifecycle for a rule that stores the list of fired activations; thus effectively forbids re-firing the same activation.
|
static ActivationLifeCycle |
STATELESS_RULE_LIFECYCLE
Lifecycle for a rule that does not store the list of fired activations; thus allows re-firing the same activation again.
|
| Modifier | Constructor and Description |
|---|---|
protected |
BatchTransformationRule() |
|
BatchTransformationRule(BatchTransformationRule<Match,Matcher> rule,
EventFilter<Match> filter) |
|
BatchTransformationRule(java.lang.String rulename,
IQuerySpecification<Matcher> matcher,
ActivationLifeCycle lifecycle,
IMatchProcessor<Match> action) |
|
BatchTransformationRule(java.lang.String rulename,
IQuerySpecification<Matcher> matcher,
ActivationLifeCycle lifecycle,
IMatchProcessor<Match> action,
EventFilter<Match> filter) |
| Modifier and Type | Method and Description |
|---|---|
IMatchProcessor<Match> |
getAction()
Return an IMatchProcessor representing the model manipulation executed by the rule.
|
EventFilter<? super Match> |
getFilter()
Returns the event filter set up for this rule; if no specific filter is
set up, an dedicated empty filter is returned
|
java.lang.String |
getName() |
IQuerySpecification<Matcher> |
getPrecondition()
Returns the query specification representing the pattern used as a precondition.
|
RuleSpecification<Match> |
getRuleSpecification()
Returns a RuleSpecification that can be added to a rule engine.
|
public static final ActivationLifeCycle STATELESS_RULE_LIFECYCLE
public static final ActivationLifeCycle STATEFUL_RULE_LIFECYCLE
protected java.lang.String ruleName
protected BatchTransformationRule()
public BatchTransformationRule(java.lang.String rulename,
IQuerySpecification<Matcher> matcher,
ActivationLifeCycle lifecycle,
IMatchProcessor<Match> action)
public BatchTransformationRule(java.lang.String rulename,
IQuerySpecification<Matcher> matcher,
ActivationLifeCycle lifecycle,
IMatchProcessor<Match> action,
EventFilter<Match> filter)
public BatchTransformationRule(BatchTransformationRule<Match,Matcher> rule, EventFilter<Match> filter)
public java.lang.String getName()
getName in interface ITransformationRule<Match extends IPatternMatch,Matcher extends ViatraQueryMatcher<Match>>public RuleSpecification<Match> getRuleSpecification()
getRuleSpecification in interface ITransformationRule<Match extends IPatternMatch,Matcher extends ViatraQueryMatcher<Match>>public IQuerySpecification<Matcher> getPrecondition()
getPrecondition in interface ITransformationRule<Match extends IPatternMatch,Matcher extends ViatraQueryMatcher<Match>>public IMatchProcessor<Match> getAction()
public EventFilter<? super Match> getFilter()
ITransformationRulegetFilter in interface ITransformationRule<Match extends IPatternMatch,Matcher extends ViatraQueryMatcher<Match>>