public class BuiltInPredicateFilters extends FiltersDefinition
Modifier and Type | Field and Description |
---|---|
(package private) HashMap<String,BinaryPredicate> |
binaryPredicates |
(package private) static HashMap<KBase,BuiltInPredicateFilters> |
builtInPredicateFilters |
(package private) KBase |
kbase |
(package private) Formula |
PREDICATE_V1 |
(package private) Formula |
PREDICATE_V1_V2 |
(package private) Formula |
PREDICATE_V1_V2_V3 |
(package private) HashMap<String,TernaryPredicate> |
ternaryPredicates |
(package private) HashMap<String,UnaryPredicate> |
unaryPredicates |
Constructor and Description |
---|
BuiltInPredicateFilters(KBase kb)
CONSTRUCTOR: definition of all filters to access predefined ("built-in") predicates
|
Modifier and Type | Method and Description |
---|---|
void |
addPredicate(BinaryPredicate predicate) |
void |
addPredicate(TernaryPredicate predicate) |
void |
addPredicate(UnaryPredicate predicate)
PUBLIC METHODS
|
static BuiltInPredicateFilters |
getInstance(FilterKBase kbase) |
private BinaryPredicate |
handleBinaryPredicate(MatchResult match,
MetaTermReferenceNode v1,
MetaTermReferenceNode v2,
KBase kb) |
private TernaryPredicate |
handleTernaryPredicate(MatchResult match,
MetaTermReferenceNode v1,
MetaTermReferenceNode v2,
MetaTermReferenceNode v3,
KBase kb) |
private UnaryPredicate |
handleUnaryPredicate(MatchResult match,
MetaTermReferenceNode v1,
KBase kb)
PRIVATE METHODS
|
defineFilter, defineFilter, getFilterDefinition
HashMap<String,UnaryPredicate> unaryPredicates
HashMap<String,BinaryPredicate> binaryPredicates
HashMap<String,TernaryPredicate> ternaryPredicates
KBase kbase
Formula PREDICATE_V1
Formula PREDICATE_V1_V2
Formula PREDICATE_V1_V2_V3
static HashMap<KBase,BuiltInPredicateFilters> builtInPredicateFilters
public BuiltInPredicateFilters(KBase kb)
private UnaryPredicate handleUnaryPredicate(MatchResult match, MetaTermReferenceNode v1, KBase kb)
private BinaryPredicate handleBinaryPredicate(MatchResult match, MetaTermReferenceNode v1, MetaTermReferenceNode v2, KBase kb)
private TernaryPredicate handleTernaryPredicate(MatchResult match, MetaTermReferenceNode v1, MetaTermReferenceNode v2, MetaTermReferenceNode v3, KBase kb)
public void addPredicate(UnaryPredicate predicate)
public void addPredicate(BinaryPredicate predicate)
public void addPredicate(TernaryPredicate predicate)
public static BuiltInPredicateFilters getInstance(FilterKBase kbase)