public final class ObservableCollectionHelper
extends java.lang.Object
ObservablePatternMatchSet
and ObservablePatternMatchList
.Modifier and Type | Method and Description |
---|---|
protected static <Match extends IPatternMatch,Matcher extends ViatraQueryMatcher<Match>> |
createRuleSpecification(IObservablePatternMatchCollectionUpdate<Match> observableCollectionUpdate,
IQuerySpecification<Matcher> querySpecification)
Creates the rule used for updating the results.
|
protected static <Match extends IPatternMatch,Matcher extends ViatraQueryMatcher<Match>> |
createRuleSpecification(IObservablePatternMatchCollectionUpdate<Match> observableCollectionUpdate,
Matcher matcher)
Creates the rule used for updating the results.
|
protected static <Match extends IPatternMatch,Matcher extends ViatraQueryMatcher<Match>> |
createUpdatingRuleSpecification(IObservablePatternMatchCollectionUpdate<Match> observableCollectionUpdate,
IQuerySpecification<Matcher> querySpecification)
Creates the rule used for updating the results including changes in feature values.
|
protected static <Match extends IPatternMatch> |
prepareRuleEngine(ViatraQueryEngine engine,
RuleSpecification<Match> specification,
EventFilter<Match> filter) |
protected static <Match extends IPatternMatch,Matcher extends ViatraQueryMatcher<Match>> RuleSpecification<Match> createRuleSpecification(IObservablePatternMatchCollectionUpdate<Match> observableCollectionUpdate, IQuerySpecification<Matcher> querySpecification)
observableCollectionUpdate
- the observable collection to handlequerySpecification
- the IQuerySpecification
used to create the ruleprotected static <Match extends IPatternMatch,Matcher extends ViatraQueryMatcher<Match>> RuleSpecification<Match> createUpdatingRuleSpecification(IObservablePatternMatchCollectionUpdate<Match> observableCollectionUpdate, IQuerySpecification<Matcher> querySpecification)
observableCollectionUpdate
- the observable collection to handlequerySpecification
- the IQuerySpecification
used to create the ruleprotected static <Match extends IPatternMatch,Matcher extends ViatraQueryMatcher<Match>> RuleSpecification<Match> createRuleSpecification(IObservablePatternMatchCollectionUpdate<Match> observableCollectionUpdate, Matcher matcher)
observableCollectionUpdate
- the observable collection to handlematcher
- the ViatraQueryMatcher
used to create the ruleprotected static <Match extends IPatternMatch> RuleEngine prepareRuleEngine(ViatraQueryEngine engine, RuleSpecification<Match> specification, EventFilter<Match> filter)