Class ByPredicateScheduler
java.lang.Object
fr.inria.rules.integraal.forward_chaining.chase.rule_scheduler.ByPredicateScheduler
- All Implemented Interfaces:
RuleScheduler
Schedules all the rules that can be triggered by rules applied at the previous step
according to the graph of rule dependencies
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a scheduler backed by the provided rule base. -
Method Summary
Modifier and TypeMethodDescriptiondescribe()Returns a textual description of the rule scheduler.Returns the configuration parameter corresponding to this scheduler.getRulesToApply(Collection<FORule> last_applied_rules) Returns the rules that should be applied at the next chase step.voidInitialize the rule applier for the given chase
-
Constructor Details
-
ByPredicateScheduler
Creates a scheduler backed by the provided rule base.- Parameters:
rb- the rulebase
-
-
Method Details
-
init
Description copied from interface:RuleSchedulerInitialize the rule applier for the given chase- Specified by:
initin interfaceRuleScheduler- Parameters:
rb- the rulebase
-
getRulesToApply
Description copied from interface:RuleSchedulerReturns the rules that should be applied at the next chase step.- Specified by:
getRulesToApplyin interfaceRuleScheduler- Parameters:
last_applied_rules- rules applied at the last step- Returns:
- the rules to apply at the next step
-
describe
Description copied from interface:RuleSchedulerReturns a textual description of the rule scheduler.- Specified by:
describein interfaceRuleScheduler- Returns:
- a textual description of the scheduler
-
getCorrespondingParameter
Description copied from interface:RuleSchedulerReturns the configuration parameter corresponding to this scheduler.- Specified by:
getCorrespondingParameterin interfaceRuleScheduler- Returns:
- the parameter corresponding to this object
-