Class AdaptableRuleBase

    • Method Detail

      • instantiateRule

        protected <EventAtom> RuleInstance<EventAtom> instantiateRule​(RuleSpecification<EventAtom> specification,
                                                                      EventFilter<? super EventAtom> filter)
        Description copied from class: RuleBase
        Instantiates the given specification over the EventRealm of the RuleBase. If the specification was already instantiated, the existing instance is returned.
        Overrides:
        instantiateRule in class RuleBase
        Parameters:
        specification - the rule to be instantiated
        Returns:
        the created or existing rule instance
      • removeRule

        protected <EventAtom> boolean removeRule​(RuleSpecification<EventAtom> specification,
                                                 EventFilter<? super EventAtom> filter)
        Description copied from class: RuleBase
        Removes and disposes of a rule instance with the given specification.
        Overrides:
        removeRule in class RuleBase
        filter - the partial match used as filter
        Returns:
        true, if the specification had an instance in the RuleBase
      • dispose

        protected void dispose()
        Description copied from class: RuleBase
        Disposes of each rule instance managed by the agenda.
        Overrides:
        dispose in class RuleBase