|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.deri.iris.evaluation.stratifiedbottomup.EvaluationUtilities
public class EvaluationUtilities
A collection of useful evaluation steps.
| Field Summary | |
|---|---|
protected Configuration |
mConfiguration
The knowledge-base configuration object. |
| Constructor Summary | |
|---|---|
EvaluationUtilities(Configuration configuration)
Constructor. |
|
| Method Summary | |
|---|---|
List<IRule> |
applyRuleOptimisers(List<IRule> rules)
Optimise a collection of rules by applying each of the rule optimisations to each rule in turn. |
List<IRule> |
applyRuleSafetyProcessor(List<IRule> rules)
Check the given rules for rule-safety (unbound variables). |
List<IRule> |
reOrderRules(List<IRule> rules)
Attempt to re-order the rules of a stratum such that the dependent rules are evaluated first. |
List<List<IRule>> |
stratify(List<IRule> rules)
Apply each of the stratifiers in turn until stratification is achieved. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Configuration mConfiguration
| Constructor Detail |
|---|
public EvaluationUtilities(Configuration configuration)
configuration - The knowledge-base configuration object.| Method Detail |
|---|
public List<List<IRule>> stratify(List<IRule> rules)
throws ProgramNotStratifiedException
rules - The input rules.
ProgramNotStratifiedException - If none of the stratification algorithms successfully
stratified the rule set.public List<IRule> reOrderRules(List<IRule> rules)
rules - The strata of rules to re-order.
public List<IRule> applyRuleOptimisers(List<IRule> rules)
rules - A collection of rules to optimise.
public List<IRule> applyRuleSafetyProcessor(List<IRule> rules)
throws RuleUnsafeException
rules - The rules to check.
RuleUnsafeException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||