public class RuleBase
extends java.lang.Object
EventRealm
and
it is responsible for creating, managing and disposing rules in
the Rule Engine. It provides an unmodifiable view for the collection of applicable activations.Modifier and Type | Method and Description |
---|---|
ScopedConflictSet |
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.
|
Agenda |
getAgenda() |
EventRealm |
getEventRealm() |
<EventAtom> |
getInstance(RuleSpecification<EventAtom> specification,
EventFilter<? super EventAtom> filter)
Returns the filtered instance managed by the RuleBase for the given specification.
|
org.apache.log4j.Logger |
getLogger() |
java.util.Set<RuleInstance<?>> |
getRuleInstances() |
com.google.common.collect.Multimap<RuleSpecification<?>,EventFilter<?>> |
getRuleSpecificationMultimap() |
public EventRealm getEventRealm()
public com.google.common.collect.Multimap<RuleSpecification<?>,EventFilter<?>> getRuleSpecificationMultimap()
public java.util.Set<RuleInstance<?>> getRuleInstances()
public <EventAtom> RuleInstance<EventAtom> getInstance(RuleSpecification<EventAtom> specification, EventFilter<? super EventAtom> filter)
specification
- filter
- the partial match to be used as filterpublic ScopedConflictSet createScopedConflictSet(ConflictResolver conflictResolver, com.google.common.collect.Multimap<RuleSpecification<?>,EventFilter<?>> specifications)
conflictResolver
- specifications
- public Agenda getAgenda()
public org.apache.log4j.Logger getLogger()