public interface ObservablePatternMatchCollection<M extends IPatternMatch>
ObservablePatternMatchList
and
ObservablePatternMatchSet
so the ObservablePatternMatchCollectionBuilder
can work with both lists and sets.Modifier and Type | Method and Description |
---|---|
void |
createRuleSpecification(IQuerySpecification<? extends ViatraQueryMatcher<M>> querySpecification)
Creates the rule specification of the observable collection using a query specification.
|
void |
createRuleSpecification(ViatraQueryMatcher<M> matcher)
Creates the rule specification of the observable collection using an existing matcher.
|
void |
createUpdater(com.google.common.base.Function<M,? extends java.lang.Object> converter,
java.util.Comparator<M> comparator)
The updater is used for transforming match set changes to observable diffs.
|
void |
initialize(RuleEngine engine)
Initializes the configured observable collection using an rule engine.
|
void |
initialize(ViatraQueryEngine engine)
Initializes the configured observable collection using a VIATRA Query engine.
|
void |
setFilter(EventFilter<M> filter)
Sets the filter used by the observable collection.
|
void createUpdater(com.google.common.base.Function<M,? extends java.lang.Object> converter, java.util.Comparator<M> comparator)
converter
- used to transform matches to other type of objectscomparator
- used to order the content of listsvoid createRuleSpecification(IQuerySpecification<? extends ViatraQueryMatcher<M>> querySpecification)
querySpecification
- void createRuleSpecification(ViatraQueryMatcher<M> matcher)
matcher
- void setFilter(EventFilter<M> filter)
filter
- void initialize(ViatraQueryEngine engine)
engine
- void initialize(RuleEngine engine)
engine
-