public class AdaptableRuleBase extends RuleBase
RuleBase that allows IEVMListeners to listen to the creation and removal of EVM
RuleSpecifications| Modifier and Type | Field and Description |
|---|---|
protected AdaptableEVM |
vm |
agenda, eventRealm, logger, ruleInstanceTable| Constructor and Description |
|---|
AdaptableRuleBase(EventRealm eventRealm,
Agenda agenda,
AdaptableEVM adapterContainer) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
dispose()
Disposes of each rule instance managed by the agenda.
|
protected <EventAtom> |
instantiateRule(RuleSpecification<EventAtom> specification,
EventFilter<? super EventAtom> filter)
Instantiates the given specification over the EventRealm of the RuleBase.
|
protected <EventAtom> |
removeRule(RuleSpecification<EventAtom> specification,
EventFilter<? super EventAtom> filter)
Removes and disposes of a rule instance with the given specification.
|
createScopedConflictSet, findInstance, getAgenda, getEventRealm, getInstance, getLogger, getRuleInstances, getRuleSpecificationMultimap, removeRuleprotected final AdaptableEVM vm
public AdaptableRuleBase(EventRealm eventRealm, Agenda agenda, AdaptableEVM adapterContainer)
protected <EventAtom> RuleInstance<EventAtom> instantiateRule(RuleSpecification<EventAtom> specification, EventFilter<? super EventAtom> filter)
RuleBaseinstantiateRule in class RuleBasespecification - the rule to be instantiatedprotected <EventAtom> boolean removeRule(RuleSpecification<EventAtom> specification, EventFilter<? super EventAtom> filter)
RuleBaseremoveRule in class RuleBasefilter - the partial match used as filter