Modifier and Type | Method and Description |
---|---|
RuleSpecification<EventAtom> |
RuleInstance.getSpecification() |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.Multimap<RuleSpecification<?>,EventFilter<?>> |
RuleEngine.getRuleSpecificationMultimap() |
com.google.common.collect.Multimap<RuleSpecification<?>,EventFilter<?>> |
RuleBase.getRuleSpecificationMultimap() |
Modifier and Type | Method and Description |
---|---|
<EventAtom> |
RuleEngine.addRule(RuleSpecification<EventAtom> specification)
Adds a rule specification to the RuleBase.
|
<EventAtom> |
RuleEngine.addRule(RuleSpecification<EventAtom> specification,
EventFilter<? super EventAtom> filter)
Adds a rule specification to the RuleBase with the given filter.
|
<EventAtom> |
RuleEngine.containsRule(RuleSpecification<EventAtom> specification)
Decides whether a rule specification is already added to the RuleBase
without filter.
|
<EventAtom> |
RuleEngine.containsRule(RuleSpecification<EventAtom> specification,
EventFilter<? super EventAtom> filter)
Decides whether a rule specification is already added to the RuleBase
with the specified filter.
|
<EventAtom> |
RuleEngine.createScopedConflictSet(RuleSpecification<EventAtom> specification,
EventFilter<? super EventAtom> eventFilter) |
<EventAtom> |
RuleEngine.getActivations(RuleSpecification<EventAtom> specification) |
<EventAtom> |
RuleEngine.getActivations(RuleSpecification<EventAtom> specification,
ActivationState state) |
<EventAtom> |
RuleEngine.getActivations(RuleSpecification<EventAtom> specification,
EventFilter<? super EventAtom> filter) |
<EventAtom> |
RuleEngine.getActivations(RuleSpecification<EventAtom> specification,
EventFilter<? super EventAtom> filter,
ActivationState state) |
<EventAtom> |
RuleBase.getInstance(RuleSpecification<EventAtom> specification,
EventFilter<? super EventAtom> filter)
Returns the filtered instance managed by the RuleBase for the given specification.
|
<EventAtom> |
RuleEngine.removeRule(RuleSpecification<EventAtom> specification)
Removes the given not-filtered rule from the EVM.
|
<EventAtom> |
RuleEngine.removeRule(RuleSpecification<EventAtom> specification,
EventFilter<? super EventAtom> filter)
Removes the given filtered rule from the EVM.
|
Modifier and Type | Method and Description |
---|---|
static ExecutionSchema |
EventDrivenVM.createExecutionSchema(EventRealm eventRealm,
Scheduler.ISchedulerFactory schedulerFactory,
java.util.Set<RuleSpecification<?>> specifications)
Creates a new execution schema that is initialized over the given
EventRealm, creates an executor and rule base with the given
rule specifications and prepares a scheduler using the provided factory.
|
ScopedConflictSet |
RuleEngine.createScopedConflictSet(ConflictResolver conflictResolver,
com.google.common.collect.Multimap<RuleSpecification<?>,EventFilter<?>> specifications) |
ScopedConflictSet |
RuleBase.createScopedConflictSet(ConflictResolver conflictResolver,
com.google.common.collect.Multimap<RuleSpecification<?>,EventFilter<?>> specifications)
Creates a scoped conflict set of the enabled activations of the provided rule specifications and filters
using the given conflict resolver.
|
ScopedConflictSet |
RuleEngine.createScopedConflictSet(com.google.common.collect.Multimap<RuleSpecification<?>,EventFilter<?>> specifications) |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.Multimap<RuleSpecification<?>,EventFilter<?>> |
ScopedConflictSet.getSpecificationFilters() |
Constructor and Description |
---|
ScopedConflictSet(RuleBase ruleBase,
ConflictResolver conflictResolver,
com.google.common.collect.Multimap<RuleSpecification<?>,EventFilter<?>> specificationFilters) |
Modifier and Type | Method and Description |
---|---|
static <Match extends IPatternMatch> |
Rules.newMatcherRuleSpecification(IncQueryMatcher<Match> matcher,
ActivationLifeCycle lifecycle,
java.util.Set<Job<Match>> jobs) |
static <Match extends IPatternMatch> |
Rules.newMatcherRuleSpecification(IQuerySpecification<? extends IncQueryMatcher<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> |
Rules.newMatcherRuleSpecification(IQuerySpecification<? extends IncQueryMatcher<Match>> querySpecification,
java.util.Set<Job<Match>> jobs)
Creates a
RuleSpecification with the given query specification and jobs,
using the DefaultActivationLifeCycle.DEFAULT life-cycle. |
Modifier and Type | Method and Description |
---|---|
static ExecutionSchema |
ExecutionSchemas.createIncQueryExecutionSchema(IncQueryEngine engine,
Scheduler.ISchedulerFactory schedulerFactory,
java.util.Set<RuleSpecification<?>> specifications)
Creates a new execution schema that is initialized over the given
IncQueryEngine, creates an executor and agenda with the given
rule specifications and prepares a scheduler using the provided factory.
|
static RuleEngine |
RuleEngines.createIncQueryRuleEngine(IncQueryEngine engine,
java.util.Set<RuleSpecification<?>> specifications)
Creates a new rule engine that is initialized over the given
IncQueryEngine and an agenda with the given (unfiltered) rule specifications.
|
Modifier and Type | Method and Description |
---|---|
void |
FixedPriorityConflictResolver.setPriority(RuleSpecification<?> specification,
int priority)
Sets the priority for the given specification.
|
Constructor and Description |
---|
FixedPriorityConflictSet(FixedPriorityConflictResolver resolver,
java.util.Map<RuleSpecification<?>,java.lang.Integer> priorities) |
InvertedDisappearancePriorityConflictSet(FixedPriorityConflictResolver resolver,
java.util.Map<RuleSpecification<?>,java.lang.Integer> priorities) |