|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.deri.iris.rules.RuleAnalyser
public class RuleAnalyser
Methods to analyse rules.
| Constructor Summary | |
|---|---|
RuleAnalyser()
|
|
| Method Summary | |
|---|---|
static boolean |
containsConstructedTerms(ITuple tuple)
|
static boolean |
hasHeadLiteralInBody(IRule rule)
Checks, whether the rule got some head atoms in the body. |
static boolean |
hasSatisfiableVariableAssignment(IRule rule)
Checks whether it is possible to assign any values to variables by static analysis of the rule. |
static boolean |
isProductive(IRule rule)
Checks, whether a rule is productive. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RuleAnalyser()
| Method Detail |
|---|
public static boolean hasHeadLiteralInBody(IRule rule)
rule - the rule to check
true if the rule body contains head atoms,
otherwise false
IllegalArgumentException - if the rule is null
public static boolean hasSatisfiableVariableAssignment(IRule rule)
throws EvaluationException
Checks whether it is possible to assign any values to variables by static analysis of the rule.
The implementation of this method is not finished. At the moment it is not able to handle constructed terms.
rule - the rule to check
true if a variable assignment was found, which
doesn't make sense.
EvaluationException - if something went wrong while evaluating
one of the equality built-ins.public static boolean containsConstructedTerms(ITuple tuple)
public static boolean isProductive(IRule rule)
rule - the rule to check
true if the rule is productive, otherwise
false
IllegalArgumentException - if the rule is null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||