public class Diagnostics extends Object
| Constructor and Description |
|---|
Diagnostics() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addToDoubleMapList(TreeMap m,
String key1,
String key2,
String value)
Add a key to a map and a key, value to the map
corresponding to the key.
|
static void |
addToMapList(TreeMap m,
String key,
String value)
Add a key to a map and a value to the ArrayList corresponding
to the key.
|
static ArrayList<String> |
childrenOfDisjointParents(KB kb)
Return a list of terms that have parents which are disjoint.
|
static String |
kbConsistencyCheck(KB kb)
Iterating through all formulas, return a proof of an inconsistent
or redundant one, if such a thing exists.
|
static void |
main(String[] args)
Test method for this class.
|
static ArrayList<String> |
membersNotInAnyPartitionClass(KB kb)
Returns a list of terms, each of which is an instance of some
exhaustively decomposed class but is not an instance of any of
the subclasses that constitute the exhaustive decomposition.
|
static String |
printTermDependency(KB kb,
String kbHref)
Show file dependencies.
|
static ArrayList<Formula> |
quantifierNotInBody(KB kb)
Find cases where a variable appears in a quantifier list, but not
in the body of the quantified expression.
|
static ArrayList<String> |
termsNotBelowEntity(KB kb)
Return a list of terms that do not have Entity as a parent term.
|
static ArrayList<String> |
termsWithMultipleDoc(KB kb)
Return a list of terms that have more than one documentation string.
|
static ArrayList |
termsWithoutDoc(KB kb)
Return a list of terms that do not have a documentation string.
|
static ArrayList<String> |
termsWithoutRelation(KB kb,
String rel,
int argnum,
int limit,
char letter)
Return a list of terms (for a given argument position) that do not
have a specified relation.
|
static ArrayList<String> |
termsWithoutRules(KB kb)
Find all terms which do not appear in any implication (rule).
|
public static ArrayList<String> termsWithoutRelation(KB kb, String rel, int argnum, int limit, char letter)
kb - the knowledge baserel - the relation nameargnum - the argument position of the termlimit - the maximum number of results to return, or -1 if allletter - the first letter of the term namepublic static ArrayList termsWithoutDoc(KB kb)
public static ArrayList<String> termsWithMultipleDoc(KB kb)
public static ArrayList<String> termsNotBelowEntity(KB kb)
public static ArrayList<String> childrenOfDisjointParents(KB kb)
public static ArrayList<String> membersNotInAnyPartitionClass(KB kb)
public static ArrayList<String> termsWithoutRules(KB kb)
public static ArrayList<Formula> quantifierNotInBody(KB kb)
public static void addToMapList(TreeMap m, String key, String value)
public static void addToDoubleMapList(TreeMap m, String key1, String key2, String value)
public static String printTermDependency(KB kb, String kbHref)
public static String kbConsistencyCheck(KB kb)
public static void main(String[] args)
Copyright © 2015. All rights reserved.