public class PredVarInst extends Object
| Constructor and Description |
|---|
PredVarInst() |
| Modifier and Type | Method and Description |
|---|---|
static void |
arityTest()
This method tries to remove literals from the Formula that
match litArr.
|
protected static HashSet<String> |
gatherPredVars(Formula f)
Collect and return all predicate variables for the given formula
|
static String |
hasCorrectArity(Formula f,
KB kb)
If arity is correct, return null, otherwise, return the predicate
that has its arity violated in the given formula.
|
static Set<Formula> |
instantiatePredVars(Formula input,
KB kb) |
static void |
main(String[] args) |
static void |
test() |
public static Set<Formula> instantiatePredVars(Formula input, KB kb)
input - formulakb - knowledge basepublic static String hasCorrectArity(Formula f, KB kb)
protected static HashSet<String> gatherPredVars(Formula f)
public static void arityTest()
public static void test()
public static void main(String[] args)
Copyright © 2015. All rights reserved.