public class AdaptableRuleBase extends RuleBase
RuleBase
that allows IEVMListener
s to listen to the creation and removal of EVM
RuleSpecification
sModifier 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, removeRule
protected final AdaptableEVM vm
public AdaptableRuleBase(EventRealm eventRealm, Agenda agenda, AdaptableEVM adapterContainer)
protected <EventAtom> RuleInstance<EventAtom> instantiateRule(RuleSpecification<EventAtom> specification, EventFilter<? super EventAtom> filter)
RuleBase
instantiateRule
in class RuleBase
specification
- the rule to be instantiatedprotected <EventAtom> boolean removeRule(RuleSpecification<EventAtom> specification, EventFilter<? super EventAtom> filter)
RuleBase
removeRule
in class RuleBase
filter
- the partial match used as filter