public class SemRewriteRuleCheck
extends java.lang.Object
Constructor and Description |
---|
SemRewriteRuleCheck() |
Modifier and Type | Method and Description |
---|---|
static java.util.Map<java.lang.Integer,java.util.HashSet<java.lang.Integer>> |
checkRuleSet(RuleSet rs)
Check the whole Ruleset.
|
static boolean |
isCNFSubsumed(CNF subsumer,
CNF subsumed)
//TODO
|
static boolean |
isCNFSubsumedNaive(CNF subsumer,
CNF subsumed)
check if CNF subsumed, naive implementation
|
static void |
isRuleSubsumedByRuleSet(Rule r,
RuleSet rs,
java.util.ArrayList<java.lang.Integer> getSubsumedRules,
java.util.ArrayList<java.lang.Integer> subsumerRules)
get all the Rules in Ruleset that would be subsumed or subsums the rule r
should pass in the arraylist as result space
|
static void |
printRuleSetTree(java.util.ArrayList<Rule> rset,
java.util.Map<java.lang.Integer,java.util.HashSet<java.lang.Integer>> links)
//TODO
|
public static void printRuleSetTree(java.util.ArrayList<Rule> rset, java.util.Map<java.lang.Integer,java.util.HashSet<java.lang.Integer>> links)
public static java.util.Map<java.lang.Integer,java.util.HashSet<java.lang.Integer>> checkRuleSet(RuleSet rs)
public static void isRuleSubsumedByRuleSet(Rule r, RuleSet rs, java.util.ArrayList<java.lang.Integer> getSubsumedRules, java.util.ArrayList<java.lang.Integer> subsumerRules)
public static boolean isCNFSubsumedNaive(CNF subsumer, CNF subsumed)